0
如何用SQL編寫...where mytable.somedate from today is older that 30 days
。我正在使用db2。如何編寫SQL ...其中今天的mytable.somedate比30天更舊
如何用SQL編寫...where mytable.somedate from today is older that 30 days
。我正在使用db2。如何編寫SQL ...其中今天的mytable.somedate比30天更舊
這應做到:
SELECT *
FROM mytable
WHERE somedate < CURRENT_TIMESTAMP - 30 DAYS