MySQL Forums
Forum List  »  InnoDB

ifnull function error
Posted by: dahlia khan
Date: January 20, 2009 03:08AM

mysql> select datediff(select ifnull(null,curdate()) ,'2008-12-12');

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'selec
t ifnull(null,curdate()) ,'2008-12-12')' at line 1

I am really confused about whats the error ?
thanx in advance



Edited 1 time(s). Last edit at 01/20/2009 03:09AM by dahlia khan.

Options: ReplyQuote


Subject
Views
Written By
Posted
ifnull function error
4799
January 20, 2009 03:08AM
2368
January 20, 2009 06:40AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.