Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Help with simple PL/SQL
HansF wrote:
> On Wed, 12 Oct 2005 23:56:18 -0400, DFS interested us by writing:
>
>
>> 14 EXECUTE IMMEDIATE 'UPDATE Table_Project SET ItemOrder =
>> ||i|| WHERE ProjCPID = ||ProjCPID ||';
>
> DO you really want all those concats inside the quotes?
>
> Do you understand what you are concatenating?
I thought I was concatenating the 2 variables into the UPDATE statement. It compiled fine, but threw that error when I ran it.
But I figured it out. The following works like a champ.
14 EXECUTE IMMEDIATE 'UPDATE Table_Project SET ItemOrder = :i WHERE ProjCPID = :ProjCPID' USING i, ProjCPID;
Thanks. Received on Thu Oct 13 2005 - 00:25:15 CDT
![]() |
![]() |