Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 04 Sep 2003 @ 15:16:13 GMT


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


Subj:   Stored Procedure that Loops
 
From:   Anomy Anom

<-- Anonymously Posted: Thursday, September 04, 2003 11:14 -->

Does anyone have an stored procedure that loops (no cursor needed).

Example:

Loop
s1. a SQL bulk delete
s2. a bulk ins/sel
s3. a bulk Update
end-loop

check after s3 if more than 0 rows updated, goback to 1.

when 3 activity goes to 0 exit the SP.



     
  <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