MySQL Forums
Forum List  »  Stored Procedures

Re: Updating a field in a stored procedure
Posted by: Peter Brawley
Date: September 05, 2012 02:54PM

> If not can you be not so technical, I'm kind of new to the whole sql scene..

It's unavoidably technical, and it's not a "scene". In what follows, substitute the value for <somevalue> which elicits the error you described in your first post, surrounding it with single quotes if it's a string or date:

drop procedure if exists p;
create procedure p() SELECT product_id FROM oc_product WHERE sku=<somevalue>;
call p();

That will show the number of rows that query returns.

Options: ReplyQuote


Subject
Views
Written By
Posted
2275
September 05, 2012 11:57AM
Re: Updating a field in a stored procedure
944
September 05, 2012 02:54PM
1222
September 08, 2012 12:21PM


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.