 |
 |
Archives of the TeradataForum
Message Posted: Wed, 12 Feb 2003 @ 15:01:16 GMT
Subj: | | Re: Looking for sample Stored Procedure |
|
From: | | Syed Arifuddin |
Hey Buddy,
You can declare a cursor with in your stored procedure to read variables from parametertable and update employee table as illustrated
below.
for update_cursor as update_cursor1 cursor for
select col1,col2,col3 from QCD.parametertable
do
update employee set
col2=:update_cursor.col2,col3=:update_cursor.col3
where col1=:update_cursor.col1
end for;
Syed.
| |