SQL通用查询

获取日期截取

 select CONVERT(varchar(10), getDate(),120) --不要时间2002-1-1
 select convert(char(8),getdate(),112) ----20020101
 select convert(char(8),getdate(),108)  ---06:05:05

 

 

posted @ 2014-05-20 15:24  汉城节度使  阅读(175)  评论(0编辑  收藏  举报