首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

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

2012-02-14 
统计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)
试试这段

热点排行