|
|
|
|
î¤éÞ / 2018-07-22 / ¿ÀÈÄ 10:06:18 / 121.140.56.140
Á¶È¸¼ö : 1754
|
[Ãßõ] MS-SQL ¿ù¿äÀϺÎÅÍ 1·Î °è»êÇÏ´Â ¹ý |
SET DATEFIRST 1
SELECT C_Date_N, DATEPART(w, C_Date_N) FROM Table_1
´Ù¸¥ ¹æ¹ý
SELECT C_Date_N, DatePart(w, C_Date_N), ((DATEPART(w, C_Date_N) + 7 - 1 - 1) % 7) + 1 FROM Table_1
|
|
|