Mysql 怎么判断时间的?
比如
select * from test a where a.date > 现在时间
我要查询比现在时间大的数据
[解决办法]
- SQL code
select * from test a where a.date > current_timestamp();
[解决办法]
getdate()
[解决办法]
[解决办法]
- SQL code
now() sysdate() curdate()
发布时间: 2012-04-01 17:23:46 作者: rapoo
Mysql 怎么判断时间的?
比如
select * from test a where a.date > 现在时间
我要查询比现在时间大的数据
[解决办法]
select * from test a where a.date > current_timestamp();
[解决办法]
getdate()
[解决办法]
now() sysdate() curdate()