MySQL Forums
Forum List  »  Newbie

Re: A problem with IFstatement.
Posted by: Roland Bouman
Date: July 26, 2005 06:05AM

such an IF works only in a stored procedure or function, not as a single, orphan statement.

You have some IF EXISTS syntax that does work outside procedures, but that is used as part of DDL statements to check the existence of databases, tables, not for executing arbitrary code.

What is the something you want to do, maybe you can encode it in a where clause?

Options: ReplyQuote


Subject
Written By
Posted
Re: A problem with IFstatement.
July 26, 2005 06:05AM


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.