pgsql select dates in year sql code example
Example 1: postgresql get year
select extract(year from your_column) from your_table;
Example 2: postgre query date
SELECT * FROM data WHERE date = '2020-12-21'
select extract(year from your_column) from your_table;
SELECT * FROM data WHERE date = '2020-12-21'