iLike dla daty postgres
column::text LIKE '2011-01-%'
GutoTrosla
column::text LIKE '2011-01-%'
SELECT *
FROM table
WHERE update_date >= '2013-05-03'::date
AND update_date < ('2013-05-03'::date + '1 day'::interval);
select now() - INTERVAL '1 YEAR';
SELECT DATE(column_name) FROM table_name;
SELECT * FROM data WHERE date = '2020-12-21'
Date in Postgresql is represented in a YYYY-MM-DD format.
SELECT * FROM data WHERE date = '2022-03-14'