Sql 得到今天的数据

 

//得到今天的数据结果的SQL
select * from [table] where convert(varchar(10),[ba_time],120)>=(select convert(varchar(10),max([time]),120from [table] where [time]<=getdate())

//还有一种
select * from [table] where [time]>='2009-04-02 00:00:00' 

 

posted @ 2009-03-26 14:17  拉飞酒鬼  阅读(93)  评论(0)    收藏  举报