sql convert 时间转换
SELECT CONVERT(varchar(100), GETDATE(), 0) union all 04 22 2011 10:15AM
SELECT CONVERT(varchar(100), GETDATE(), 1) union all 04/22/11
SELECT CONVERT(varchar(100), GETDATE(), 2) union all 11.04.22
SELECT CONVERT(varchar(100), GETDATE(), 3) union all 2022-4-11
SELECT CONVERT(varchar(100), GETDATE(), 4) union all 22.04.11
SELECT CONVERT(varchar(100), GETDATE(), 5) union all 2022-4-11
SELECT CONVERT(varchar(100), GETDATE(), 6) union all 22 04 11
SELECT CONVERT(varchar(100), GETDATE(), 7) union all 04 22, 11
SELECT CONVERT(varchar(100), GETDATE(), 8) union all 10:15:35
SELECT CONVERT(varchar(100), GETDATE(), 9) union all 04 22 2011 10:15:35:790AM
SELECT CONVERT(varchar(100), GETDATE(), 10) union all 04-22-11
SELECT CONVERT(varchar(100), GETDATE(), 11) union all 2011-4-22
SELECT CONVERT(varchar(100), GETDATE(), 12) union all 2202-4-28
SELECT CONVERT(varchar(100), GETDATE(), 13) union all 22 04 2011 10:15:35:790
SELECT CONVERT(varchar(100), GETDATE(), 14) union all 10:15:35:790
SELECT CONVERT(varchar(100), GETDATE(), 20) union all 2011-4-22
SELECT CONVERT(varchar(100), GETDATE(), 21) union all 15:35.8
SELECT CONVERT(varchar(100), GETDATE(), 22) union all 04/22/11 10:15:35 AM
SELECT CONVERT(varchar(100), GETDATE(), 23) union all 2011-4-22 0:00
SELECT CONVERT(varchar(100), GETDATE(), 24) union all 15:35.0
SELECT CONVERT(varchar(100), GETDATE(), 25) union all 15:35.8
SELECT CONVERT(varchar(100), GETDATE(), 100) union all 04 22 2011 10:15AM
SELECT CONVERT(varchar(100), GETDATE(), 101) union all 04/22/2011
SELECT CONVERT(varchar(100), GETDATE(), 102) union all 2011.04.22
SELECT CONVERT(varchar(100), GETDATE(), 103) union all 22/04/2011
SELECT CONVERT(varchar(100), GETDATE(), 104) union all 22.04.2011
SELECT CONVERT(varchar(100), GETDATE(), 105) union all 22-04-2011
SELECT CONVERT(varchar(100), GETDATE(), 106) union all 22 04 2011
SELECT CONVERT(varchar(100), GETDATE(), 107) union all 04 22, 2011
SELECT CONVERT(varchar(100), GETDATE(), 108) union all 10:15:35
SELECT CONVERT(varchar(100), GETDATE(), 109) union all 04 22 2011 10:15:35:790AM
SELECT CONVERT(varchar(100), GETDATE(), 110) union all 04-22-2011
SELECT CONVERT(varchar(100), GETDATE(), 111) union all 2011-4-22
SELECT CONVERT(varchar(100), GETDATE(), 112) union all 20110422
SELECT CONVERT(varchar(100), GETDATE(), 113) union all 22 04 2011 10:15:35:790
SELECT CONVERT(varchar(100), GETDATE(), 114) union all 10:15:35:790
SELECT CONVERT(varchar(100), GETDATE(), 120) union all 2011-4-22 10:15
SELECT CONVERT(varchar(100), GETDATE(), 121) 15:35.8
-------------------------------------------------
!!!作者:木由水 http://www.cnblogs.com/muyoushui