读书人

Mysql 如何判断时间的

发布时间: 2012-04-01 17:23:46 作者: rapoo

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() 

读书人网 >SQL Server

热点推荐