sabari T

sabari T

  • NA
  • 19
  • 9.7k

INSERT QUERY of TRIGGER?..

Sep 14 2012 8:02 AM
how to give a variable name of trigger as table name in INSERT QUERY of TRIGGER?..

create trigger tg on TABLE_NAME
Declare @var;
select @var=i.tg from inserted i;
insert into '+@var+' values('xzxcvdf','dvfdf');
go

i Got a error on this.....Anyone can help me

Answers (1)