Query comparing dates in SQL

前端 未结 7 1884
野趣味
野趣味 2020-11-28 10:18

I have a table with dates that all happened in the month November. I wrote this query

select id,numbers_from,created_date,amount_numbers,SMS_text 
from Tes         


        
7条回答
  •  悲&欢浪女
    2020-11-28 10:39

    Date format is yyyy-mm-dd. So the above query is looking for records older than 12Apr2013

    Suggest you do a quick check by setting the date string to '2013-04-30', if no sql error, date format is confirmed to yyyy-mm-dd.

提交回复
热议问题