【发布时间】:2013-07-31 12:27:27
【问题描述】:
我需要今天curdate 所在的所有条目...
curdate 的类型为 timestamp。
当然我在谷歌搜索过这个,但我认为我使用了错误的关键字。
select * from ftt.element fee, ftt.plan p
where p.id=ftt.p_id and curdate ???
order by p_id, curdate desc;
你能提供给我吗?
【问题讨论】:
-
这是用 PHP 完成的吗?
-
您使用的是什么关系型数据库? mysql?后格雷斯?甲骨文?当前日期的函数在每个函数中可能不同。
-
不,这只是 Oracle 的声明......