I want to write a simple query but am just a learner, and am struggling with what I think is the curdate function.
I want to return values where a date field is less then todays date
I currently have
but it is not working.
This field is a datetime field.
Thanks
"Stupid isn't not knowing the answer, it's not asking the question
I want to return values where a date field is less then todays date
I currently have
Code:
select * from TABLE where vacated_date <= curdate
but it is not working.
This field is a datetime field.
Thanks
"Stupid isn't not knowing the answer, it's not asking the question