SQL where datetime column equals today's date?

前端 未结 5 560
感情败类
感情败类 2021-01-31 07:08

How can I get the records from a db where created date is today\'s date?

SELECT [Title], [Firstname], [Surname], [Company_name], [Interest] 
FROM [dbo].[EXTRANET         


        
5条回答
  •  萌比男神i
    2021-01-31 07:36

    Easy way out is to use a condition like this ( use desired date > GETDATE()-1)

    your sql statement "date specific" > GETDATE()-1

提交回复
热议问题