统计SQL数据库今天的记录数如何统计

统计SQL数据库今天的记录数怎么统计?select * from tab where ctime今天ctime是datetime类型的.[解决办

统计SQL数据库今天的记录数怎么统计?
select * from tab where ctime='今天'

ctime是datetime类型的.




[解决办法]

探讨
select count(*) from tab where convert(char(8),ctime,112) = convert(char(8),getdate(),112)
试试这段