I have Date field in my SQL database.
I want only those records to be written inside a file whose date match with current date/ system date.
I can’t find any SQL query in ** **for matching the two dates.
What should come in place of ???
SELECT * FROM attendence where Date = ???
depends on date time format
if its ‘2012-10-09 15:04:58’
if its ‘2012-10-09’