Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 12 Feb 2003 @ 15:01:16 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


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.



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023