Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 24 Jan 2014 @ 12:23:14 GMT


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


Subj:   Re: Activity count of select statement in Stored procedure
 
From:   Frydryszak, Marek

I can't repeat such issue:

     REPLACE PROCEDURE samples.sp_test (OUT par1 INTEGER, OUT par2 INTEGER) BEGIN  DECLARE bf
     integer;
       select 1 from dbc.dbcinfo into :bf where infokey='no such key';
         set par1=activity_count;
       select 1 from dbc.dbcinfo into :bf where infokey='version';
         set par2=activity_count;
     END;

     call samples.sp_test(a,b);

result : a=0, b=1



     
  <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