MySQL Forums
Forum List  »  Quality Assurance

Select statement in procedures
Posted by: Janina k
Date: April 29, 2011 10:03AM

Inside a procedure :

SELECT CName into name from Tab_customer where cust_id=2;

The above statement works when it is just a single statement inside the procedure.

But when I add other statements inside the same procedure it returns a null value when I try printing the 'name'.

I find this very strange, because only very few times this happens, otherwise it
works fine!.

What will be the reason for this issue?

Options: ReplyQuote


Subject
Views
Written By
Posted
Select statement in procedures
1532
April 29, 2011 10:03AM


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.