日期查询字符串转换
摘要:
在项目中常常设及到时间段的查询,比如:2008-08-08~2008-08-08之间的数据。 不过一般数据库中保存的时间格式 2008-08-15 16:42:33.890 这样在SQL语句中用between and 就无法得到数据,就要用到数据转换Convert及Cast都可以,Convert没有2008-08-08 这样的格式,select convert(varchar(20),getdat... 阅读全文
posted @ 2008-08-15 16:45 ★金★ 阅读(302) 评论(0) 推荐(0) 编辑