MySQL Forums
Forum List  »  Stored Procedures

Re: How to return null/empty resultset from SP??
Posted by: Ming Yeung
Date: December 12, 2005 07:50PM

O...*_*...still no luck.

It returns [0] even I tried to set...

...
SET ret_id = NULL;
SELECT ret_id;
END

Actually, this can be solved(fool) by applying the same SELECT statement before END or modify the java code...

rs.next();
if(rs.getInt("ret_id")==0)
not found
else
found

But, but I do not think these are good.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to return null/empty resultset from SP??
1789
December 12, 2005 07:50PM


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.