close

EX : Select Right('00000000' + Cast(123 as varchar),8)  > '00000123'

 

參考自 : The Will Will Blog
http://blog.miniasp.com/post/2010/05/T-SQL-Tips-Fixed-Length-Number-with-Zero-Padded.aspx

arrow
arrow
    全站熱搜

    felixhuang 發表在 痞客邦 留言(0) 人氣()