关于数据库时间问题
数据库中有表 table 时间列为date类型是(datetime)型 如何选取当天的数据用sql写
数据库中有表 table 时间列为date类型是(datetime)型 如何选取当天的数据用sql写
2007-08-21 19:32
2007-08-21 23:33
2007-08-22 08:15
2007-08-22 08:19
可以用模糊查询获取,select * from [table] where [date] like convert(char(10),getdate(),21)+'%'具体不知道获取当天日期(具体到天)有没问题,大致就是这个意思拉。

2007-08-23 14:02
2007-08-23 20:32
2007-08-27 13:57
2007-08-27 17:10
2007-08-27 17:10
2007-08-28 09:49