Good Afternoon All
I'm new to sql programming and I've been asked to create a trigger to move data along a row. Trigger Created As Follows:-
create trigger movedata
on Testing
for update
as
If update (col_1)
insert into testing(col_2)
select col_1 from
testing
However everytime I update col_1, the inserted data is added to an extra row not the same row.
Is this possible or am I living in a dream world!!!!
Thanks
M
I'm new to sql programming and I've been asked to create a trigger to move data along a row. Trigger Created As Follows:-
create trigger movedata
on Testing
for update
as
If update (col_1)
insert into testing(col_2)
select col_1 from
testing
However everytime I update col_1, the inserted data is added to an extra row not the same row.
Is this possible or am I living in a dream world!!!!
Thanks
M