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.
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
select where clause current date
-
- nuBuilder Team
- Posts: 4581
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 536 times
- Contact:
Re: select where clause current date
Code: Select all
SELECT * FROM view_eventplayer
WHERE eventdate >= CURDATE()
ORDER BY last_name
-
- Posts: 30
- Joined: Wed Sep 06, 2023 12:45 am