📜  今天减 15 天 postgresql 代码示例

📅  最后修改于: 2022-03-11 15:05:33.140000             🧑  作者: Mango

代码示例1
--yesterday
SELECT NOW() - INTERVAL '1 DAY';

--Unrelated to the question, but PostgreSQL also supports some shortcuts:
SELECT 'yesterday'::TIMESTAMP, 'tomorrow'::TIMESTAMP, 'allballs'::TIME;