Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Variable table name in update command
fitzjarrell_at_cox.net schrieb:
> drake wrote:
>> I have a stored procedure that uses a cursor:
...
>> I then wish to update a record in a table based on the data in the
>> cursor:
...
>> How can I use a variable for a tablename in an update command?
you're teaching how to NOT use bind variables!
Please do:
sqlTxt :=
'update '||remform||' set status = :st where action_id = :id';
execute immediate sqlTxt using 3, ; Received on Wed Sep 13 2006 - 11:52:47 CDT
![]() |
![]() |