标签: sql db2
如何用SQL ...where mytable.somedate from today is older that 30 days编写。我正在使用db2。
...where mytable.somedate from today is older that 30 days
答案 0 :(得分:0)
这应该这样做:
SELECT * FROM mytable WHERE somedate < CURRENT_TIMESTAMP - 30 DAYS