Re: Updating a field in a stored procedure
> 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.
Subject
Views
Written By
Posted
2275
September 05, 2012 11:57AM
908
September 05, 2012 01:35PM
1014
September 05, 2012 02:13PM
Re: Updating a field in a stored procedure
944
September 05, 2012 02:54PM
878
September 05, 2012 03:46PM
969
September 07, 2012 01:01PM
1222
September 08, 2012 12:21PM
1407
September 05, 2012 02:58PM
961
September 05, 2012 03:01PM
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.