How to use greater than operator with date?

前端 未结 6 1694
鱼传尺愫
鱼传尺愫 2020-12-05 03:36

No idea what is going on here. Here is the query, right from phpMyAdmin:

SELECT * FROM `la_schedule` WHERE \'start_date\' >\'2012-11-18\';
6条回答
  •  萌比男神i
    2020-12-05 04:10

    In my case my column was a datetime it kept giving me all records. What I did is to include time, see below example

    SELECT * FROM my_table where start_date > '2011-01-01 01:01:01';
    

提交回复
热议问题