Question
How to make below query right while the column update_date is of type as "date/time"?
- select * from table where update_date >= '2013-05-03' AND update_date <= '2013-05-03'
One example as below:
- SELECT *
- FROM table
- WHERE update_date >= '2013-05-03'::date
- AND update_date < ('2013-05-03'::date + '1 day'::interval);
* PostgreSQL Doc - Date/Time Functions and Operators
沒有留言:
張貼留言