MySQL timestamp select date range

后端 未结 7 1088
栀梦
栀梦 2021-02-01 14:32

Not sure really where to start with this one. Can anyone help/point me in the right direction.

I have a timestamp column in MySQL and I want to select a date range for e

7条回答
  •  一个人的身影
    2021-02-01 14:55

    I can see people giving lots of comments on this question. But I think, simple use of LIKE could be easier to get the data from the table.

    SELECT * FROM table WHERE COLUMN LIKE '2013-05-11%'
    

    Use LIKE and post data wild character search. Hopefully this will solve your problem.

提交回复
热议问题