Answers for "extract datetime postgres"

SQL
2

get year from date postgres

SELECT EXTRACT(YEAR FROM column_date);
Posted by: Guest on June-01-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