Answers for "postgres get a year after today"

SQL
5

postgresql get year

select extract(year from your_column) from your_table;
Posted by: Guest on May-26-2020
3

postgresql today - 1 year

select now() - INTERVAL '1 YEAR';
Posted by: Guest on September-18-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language