可讓數字固定10碼,前面補0select REPLICATE('0',10-len(10))+convert(varchar(10),10)
select REPLICATE('0',10-len(10))+convert(varchar(10),10)