codefox
12-03-2002, 12:20 PM
Here's a trigger
CREATE TRIGGER tAddNewFeedbackItem
ON cust_feedback
FOR INSERT, UPDATE
AS
IF UPDATE(fd_item_id)
ALTER TABLE prj_cust_feedback ADD <col> INTEGER...
Now, is there a way I could refer to the fd_item_id value in the place of <col>? All I'm trying to do is insert a column in prj_cust_feedback with the same name as the newly entered column value in cust_feedback table.
Thanks.
CREATE TRIGGER tAddNewFeedbackItem
ON cust_feedback
FOR INSERT, UPDATE
AS
IF UPDATE(fd_item_id)
ALTER TABLE prj_cust_feedback ADD <col> INTEGER...
Now, is there a way I could refer to the fd_item_id value in the place of <col>? All I'm trying to do is insert a column in prj_cust_feedback with the same name as the newly entered column value in cust_feedback table.
Thanks.