2012年5月4日

Sqlserver中对时间类型的字段转换

摘要: 获取当前日期利用 convert 来转换成我们需要的datetime格式. selectCONVERT(varchar(12),getdate(),112)20040912 ------------------------------------------------------------ selectCONVERT(varchar(12),getdate(),102)2004.09.12 ------------------------------------------------------------ selectCONVERT(varchar(12),getdate(),101. 阅读全文

posted @ 2012-05-04 17:53 dudumao 阅读(7433) 评论(0) 推荐(2) 编辑

导航

阿里云