首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

Mysql 如何判断时间的

2012-04-01 
Mysql 怎么判断时间的?比如select * from test awhere a.date 现在时间我要查询比现在时间大的数据[解决

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

热点排行
Bad Request.