블로그 이미지
Sunny's

calendar

1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

Notice

2012. 4. 23. 17:25 MSSQL

 

결과값에 자리수를 표시하는 방법(Money)

 

 select convert(varchar, convert(money, 100000000), 1)

 

 ----------------

  결과값

  100,000,000.00


 select Replace(convert(varchar, convert(money, 100000000), 1), '.00','')

----------------

 결과값

100,000,000

 

 

posted by Sunny's