DB/PostgreSQL
[Postgresql] date/time 차이 계산해서 구하기
Binceline
2016. 9. 26. 18:31
select * from table_name
where date_column_name::timestamp >= (now()::timestamp - '14 days'::interval);
이런 식으로 하면 된다.
days, hours, etc...
반응형