날짜 자릿수 나오게 하기 4 -> 04

datename(day,getDate()) 하면 1월 1일인 경우

01 이 나올줄 알았는데 그냥 1이 나오는군요. 이거 01로 나오게 하고 싶은데 어떻게 해야 되나.

select right('0' + cast(datename(day, '20070101') as varchar) , 2)
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2008/04/16 11:36 2008/04/16 11:36
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/3177

Trackback URL : http://tcbs17.cafe24.com/tc/trackback/3177

« Previous : 1 : ... 510 : 511 : 512 : 513 : 514 : 515 : 516 : 517 : 518 : ... 1009 : Next »

블로그 이미지

- 홍반장

Archives

Recent Comments

  1. 1 pHqghUme 01/05
  2. 1 pHqghUme 01/05
  3. 1 pHqghUme 01/05
  4. 1 pHqghUme 01/05
  5. 1 pHqghUme 01/05

Calendar

«   2025/02   »
            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  
Statistics Graph

Site Stats

Total hits:
269109
Today:
134
Yesterday:
983