MySQL Forums
Forum List  »  Stored Procedures

Re: Classic SP problem
Posted by: Peter Brawley
Date: January 13, 2006 10:05AM

Christoph,

To get the result try SELECT ... INTO, ie

DECLARE pk INT DEFAULT NULL;
SELECT foodtype_pk INTO pk FROM foodtype WHERE foodtype_name = type;
IF pk IS NULL THEN ...

PB

Options: ReplyQuote


Subject
Views
Written By
Posted
2151
January 13, 2006 03:28AM
Re: Classic SP problem
1332
January 13, 2006 10:05AM
1320
January 14, 2006 07:32AM
1324
January 16, 2006 02:22AM


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.