Timestampwithouttimezone
方法一:
select*fromuser_infowherecreate_date >='2015-07-01'andcreate_date <'2015-08-15';
方法二:
select*fromuser_infowherecreate_date between'2015-07-01'and'2015-08-15';
方法三:
select*fromuser_infowherecreate_date >='2015-07-01'::timestampandcreate_date <'2015-08-15'::timestamp;
方法四:
select*fromuser_infowherecreate_date between to_date('2015-07-01','YYYY-MM-DD')andto_date('2015-08-15','YYYY-MM-DD');
原文链接:https://www.f2er.com/postgresql/194951.html