Answer the question
In order to leave comments, you need to log in
How to get rows with current date in sql?
there is a sql query.
SELECT Userid FROM Checkinout Tell me
how to abyss WHERE CheckTime = "2020.06.18" to get all rows for the specified day?
Answer the question
In order to leave comments, you need to log in
Classic variant:
where cast(datetime_field as date) = cast(getdate() as date)
SELECT Userid FROM Checkinout where CheckTime like '2020.06.18%'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question