Sql 得到今天的数据
//得到今天的数据结果的SQL
select * from [table] where convert(varchar(10),[ba_time],120)>=(select convert(varchar(10),max([time]),120) from [table] where [time]<=getdate())
//还有一种
select * from [table] where [time]>='2009-04-02 00:00:00'
select * from [table] where convert(varchar(10),[ba_time],120)>=(select convert(varchar(10),max([time]),120) from [table] where [time]<=getdate())
//还有一种
select * from [table] where [time]>='2009-04-02 00:00:00'

浙公网安备 33010602011771号