Archives of the TeradataForum
Message Posted: Thu, 02 May 2002 @ 20:04:13 GMT
A trigger must be coded ahead of time with the table name included, table cannot be a parameter.
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.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|