MySQL Forums
Forum List  »  Stored Procedures

Can stored procedures/functions handle ternary operators?
Posted by: J D
Date: August 08, 2005 06:08PM

I can't seem to get it to work. Maybe it doesn't support it?


example:

CREATE FUNCTION blah() RETURNS int(1)
BEGIN
return (7=5) ? 1 : 0;
END

Options: ReplyQuote


Subject
Views
Written By
Posted
Can stored procedures/functions handle ternary operators?
9213
J D
August 08, 2005 06:08PM


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.