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 > Informix > Triger For Update Informix Se 7.1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-22-03, 15:21
tabacaru tabacaru is offline
Registered User
 
Join Date: Jan 2003
Posts: 9
Triger For Update Informix Se 7.1

I'm a newsbie on INFORMIX SE 7.1 and I want to create a TRIGGER ON UPDATE. In a table I'd like to update a field (name of user wich post the update). To identify the record wich is update, in MS SQL2002 I use the syntax FROM DELETED
I see tah didn't work with Informix SE 7.1. Is there another possibility to identify the record wich is update ?
Thanks a lot !
Tabacaru Teodor,
Ragusa ITALIA
Reply With Quote
  #2 (permalink)  
Old 01-27-03, 11:00
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
You can specify OLD as and NEW as:

so OLD.primary_key would point to the current record. If that's what you want to do.
7.1 is an old version. I see that you use the latest of MS, I would suggest to do the same for informix... It helps.
__________________
rws
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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