用sql查询截止当前时间的所有数据,
select * from 表名 where 列名 < sysdate;
你用什么数据库 ?有时间的字段吗?如果有的话 ,直接select * from table where date<sysdate
select * from table where date<getdate()