Today minus 15 days postgresql

This article is tagged with: Today minus 15 days postgresql and mysql

today minus 15 days postgresql

--yesterday
SELECT NOW() - INTERVAL '1 DAY';
--Unrelated to the question, but PostgreSQL also supports some shortcuts:
SELECT 'yesterday'::TIMESTAMP, 'tomorrow'::TIMESTAMP, 'allballs'::TIME;

This article is tagged with: Today minus 15 days postgresql and mysql