SQL where datetime column equals today's date?

前端 未结 5 561
感情败类
感情败类 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条回答
  •  误落风尘
    2021-01-31 07:54

    To get all the records where record created date is today's date Use the code after WHERE clause

    WHERE  CAST(Submission_date AS DATE) = CAST( curdate() AS DATE)
    

提交回复
热议问题