MySQL Forums
Forum List  »  InnoDB

Re: Using the compared value
Posted by: William Chiquito
Date: September 30, 2008 08:23AM

Hi Stephen,

Try:
DECLARE result INT DEFAULT -1;
SET result = (SELECT...);
IF(result < 0, 'N/A',result);

Options: ReplyQuote


Subject
Views
Written By
Posted
2682
September 30, 2008 05:54AM
Re: Using the compared value
1935
September 30, 2008 08:23AM
1888
September 30, 2008 08:23AM
1876
October 01, 2008 12:35AM


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.