Postgresql Получить дату от DateTime
SELECT DATE(column_name) FROM table_name;
GutoTrosla
SELECT DATE(column_name) FROM table_name;
SELECT * FROM data WHERE date = '2020-12-21'
SELECT NOW();
now
-------------------------------
2017-03-18 08:21:36.175627+07
(1 row)
Code language: SQL (Structured Query Language) (sql)