Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 02 Mar 2005 @ 22:05:14 GMT


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


Subj:   ActivityCount as an output
 
From:   Srikanth Goli

The link ( www.teradataforum.com/teradata/19990802_223841.htm ) in Teradata Forum explains a way to find the number of rows affected by a SQL Statement. I have similar need, and I want to do this in a stored procedure. In essence I want to return as an output the number of rows affected by the SQL statement, like below

     Replace  Procedure sp_RowCount ( OUT RowCount  int)
     BEGIN
         Update Table1  Set Col1 = 1;
         Set RowCount = ACTIVITYCOUNT;
     END

How ever I get an error message, The error is : SPL2001:E(L4), Undefined symbol 'ACTIVITYCOUNT'. I was wondering how I can achieve this? Even if there is a way to insert the ActivityCount into a table, that would be fine too.


Thanks.

Srikanth



     
  <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: 27 Dec 2016