当前位置: 代码迷 >> Sql Server >> Mysql 如何判断时间的
  详细解决方案

Mysql 如何判断时间的

热度:64   发布时间:2016-04-27 14:13:22.0
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()
  相关解决方案