Getting results between two dates in PostgreSQL

前端 未结 8 1600
感动是毒
感动是毒 2020-12-07 22:59

I have the following table:

+-----------+-----------+------------+----------+
| id        | user_id   | start_date | end_date |
| (integer) | (integer) | (da         


        
8条回答
  •  悲哀的现实
    2020-12-07 23:17

    Looking at the dates for which it doesn't work -- those where the day is less than or equal to 12 -- I'm wondering whether it's parsing the dates as being in YYYY-DD-MM format?

提交回复
热议问题