Answers for "postgresql "current_date" minus 1 day"

SQL
8

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;
Posted by: Guest on March-05-2020
1

current date in postgresql minus 1 day

CURRENT_DATE-INTERVAL '1 DAY'
Posted by: Guest on February-22-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language