SQL WHERE datetime > NOW
| From: | John Dillon | Date: | Sat, 03 Jan 2004 12:27:58 +0000 |
| Subject: | SQL WHERE datetime > NOW | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32255@lists.php.net to get a copy of this message | ||
I'm trying to limit the results where a datatime field is later than todays date:
WHERE TO_DAYS(NOW())>TO_DAYS(MyTable.myfield)
doesn't appear to work. Should it? Should I not be nesting functions within an SQL statement
like
this?
Thanks in advance for any ideas.
John