您的位置:首页 > 数据库

简单的数据库时间查询

2013-01-06 14:49 211 查看
select * from score_get where substring(Convert(char(10),get_time,112),1,8)='20100325'

select * from score_get where get_time between '2010-03-25 00:00:00' and '2010-03-25 23:59:59'

select * from score_get where year(get_time) = 2010 and month(get_time)= 03 and day(get_time) = 25

select * from score_get where get_time > '2010-03-25' and get_time < '2010-03-26'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: