PostgresSql日期字段比较大小

使用关键字 timestamp比较即可。

select count(*) from tablename where adddate>timestamp '2016-11-14 00:00:00' and adddate < timestamp '2016-11-14 23:59:59'

 

posted @ 2016-11-16 08:48  swbzmx  阅读(21479)  评论(0编辑  收藏  举报