Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

select where clause current date

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
databs1234
Posts: 30
Joined: Wed Sep 06, 2023 12:45 am

select where clause current date

Unread post 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.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: select where clause current date

Unread post by kev1n »

Code: Select all

SELECT * FROM view_eventplayer
WHERE eventdate >= CURDATE()
ORDER BY last_name
databs1234
Posts: 30
Joined: Wed Sep 06, 2023 12:45 am

Re: select where clause current date

Unread post by databs1234 »

worked thanks
Post Reply