經安全檢測,此網站為安全網站,請放心前往原始網址!

sql server - How to convert int to char with leading zeros ...

sql-server stored-procedures ... You can also use FORMAT() function introduced in SQL Server 2012. .... select right('000' + convert(varchar(3),id),3) from table example declare @i int ...

stackoverflow.com

網址安全性掃描由 google 提供