摘要: 1.判断年月日是否相等select * from table where cast(convert(varchar(10), 时间字段, 120) as datetime)='2010-10-01'判断逻辑:通过convert函数现将时间字段中年月日截取出来,然后利用cast函数转化为datetim... 阅读全文
posted @ 2015-07-10 17:47 狐狸的美食盒 阅读(3652) 评论(0) 推荐(0) 编辑