Page 1 of 1

select where clause current date

Posted: Wed May 08, 2024 10:12 pm
by databs1234
Looking to show the records that are for today and in the future. Anyone know the correct syntax and function that would return today's date for a SQL statement? Something like the below:

SELECT * FROM view_eventplayer
WHERE eventdate >= currentdate()
ORDER BY last_name

currentdate() is one I've used with other databases. Appreciate the help.

Re: select where clause current date

Posted: Wed May 08, 2024 10:26 pm
by kev1n

Code: Select all

SELECT * FROM view_eventplayer
WHERE eventdate >= CURDATE()
ORDER BY last_name

Re: select where clause current date

Posted: Thu May 09, 2024 6:55 pm
by databs1234
worked thanks