Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 02 May 2002 @ 20:04:13 GMT


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


Subj:   Re: Trigger Update Count of the Table..
 
From:   Todd A. Walter

A trigger must be coded ahead of time with the table name included, table cannot be a parameter.

However:

INSERT INTO activity_log SELECT 'tab1', 100, COUNT(*) FROM tab1;

should do the trick.

And if you like you can code that INSERT into a stored procedure and just pass it 'tab1' and 100 as parameters.



     
  <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