okay, i just looked it up at mysql.com and you're right, the SELECT statement does not require a FROM clause
the reason i asked Hugo which query was because i'd hate to have to explain how to create an OOAK (one of a kind) table -- similar to oracle's DUAL -- if the current date was actually required along with something else in an existing query
but the FROM-less SELECT works fine
F.Y.I. mysql does not have a DATE() function, it supports the CURRENT_DATE function which is the international standard
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.