Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: PL/SQL and multiple UPDATE
Eckhard Kirschning <kirschni_at_uke.uni-hamburg.de> schrieb in im Newsbeitrag: 3902ED9F.243141B0_at_uke.uni-hamburg.de...
RTFM :-)
>
> PROCEDURE proc(parameter_list)
> IS
> CURSOR update_cur IS
> SELECT a,b,c,d
> FROM t_table
> WHERE column=v_in
> FOR UPDATE;
> update_rec update_cur%ROWTYPE;
> BEGIN
> OPEN update_cur;
> FETCH update_cur INTO update_rec;
>
UPDATE t_table
SET a=v_1_in,
b=v_2_in, c=v_3_in, d=v_4_in