Query comparing dates in SQL

前端 未结 7 1766
野趣味
野趣味 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 11:05

    please try with below query

    select id,numbers_from,created_date,amount_numbers,SMS_text 
    from Test_Table
    where 
    convert(datetime, convert(varchar(10), created_date, 102))  <= convert(datetime,'2013-04-12')
    
    0 讨论(0)
提交回复
热议问题