“Aktuelles Datum in PostgreSQL minus 1 Tag” Code-Antworten

Heute minus 15 Tage nachgresql

--yesterday
SELECT NOW() - INTERVAL '1 DAY';

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

Aktuelles Datum in PostgreSQL minus 1 Tag

CURRENT_DATE-INTERVAL '1 DAY'
Strange Sardine-JM

Ähnliche Antworten wie “Aktuelles Datum in PostgreSQL minus 1 Tag”

Fragen ähnlich wie “Aktuelles Datum in PostgreSQL minus 1 Tag”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen