日期:2014-05-18  浏览次数:20593 次

Mysql 怎么判断时间的?
比如

select * from test a where a.date > 现在时间


我要查询比现在时间大的数据

------解决方案--------------------
SQL code
select * from test a where a.date > current_timestamp();

------解决方案--------------------
getdate()
------解决方案--------------------
探讨
比如

select * from test a where a.date > 现在时间


我要查询比现在时间大的数据

------解决方案--------------------
SQL code
now() 
sysdate() 
curdate()