摘要: 一,截取的到的年月select convert(char(7),'2013-04-12 09:32:28.000',120);结果 2013-04select SUBSTRING(getdate(),0,8) ;二,截取到年月日select convert(varchar(10),getdate(),120);三,截取时间(HH:MM:SS)select convert(varchar(8),getdate(),108); 阅读全文
posted @ 2013-04-12 10:16 詺*篂 阅读(333) 评论(0) 推荐(0) 编辑