0

我有以下查询:

SELECT * FROM financials

如何将查询限制在过去 30 天内的日期?就像是:

SELECT * FROM financials WHERE date BETWEEN now - 30 days AND now
4

1 回答 1

3
SELECT * FROM financials WHERE date >= NOW() - INTERVAL 30 DAY
于 2013-04-03T20:14:13.933 回答