If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > Creating trigger to transfre data in Syabase IQ

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-29-09, 14:41
krishanfernando krishanfernando is offline
Registered User
 
Join Date: Dec 2009
Posts: 2
Creating trigger to transfre data in Syabase IQ

Hi all,
I want to transfer only updated data to another temp table. so i have created following trigger. but it's not working. so can some send me the working trigger with correct syntex. thanks a lot.

create trigger Test_copy after insert on
DBA.test_org
referencing new as inserted
for each row
begin
insert into DBA.test_back (ID, data) Select ID,data from inserted
end

Regards, krish
Reply With Quote
  #2 (permalink)  
Old 01-02-10, 02:41
krishanfernando krishanfernando is offline
Registered User
 
Join Date: Dec 2009
Posts: 2
Please help me solve this issue
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On