Is there a way to return true or false via mysql query?
I have a table:
id | start
4 | 2012-03-01 00:00:00
8 | 2012-01-20 00:00:00
I’d like to return either TRUE if the current date is greater than the start date and FALSE if it isn’t. I know I can do comparisons via PHP, but am wondering if I can do it via query?
1 Answer