select CONVERT(varchar(10), getDate(),120) --不要时间2002-01-01
select convert(char(8),getdate(),112) ----20020101
select convert(char(8),getdate(),108) ---06:05:05
select convert(char(8),getdate(),112) ----20020101
select convert(char(8),getdate(),108) ---06:05:05
-------------------
2003-04-18 16:36:51(所影响的行数为 1 行)