7
Wie kann ich eine Spalte mit einem Datum z. '2012-08-03' zum Tag des Jahres in Postgres?Datum in Jahr in Postgres umwandeln
Wie kann ich eine Spalte mit einem Datum z. '2012-08-03' zum Tag des Jahres in Postgres?Datum in Jahr in Postgres umwandeln
Verwenden Sie die extract Funktion:
select extract(doy from the_date_column)
from the_table
Anmerkung: 'day' gibt Tag des Monats,' dow' Tag der Woche. – captainpete