![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi guys, Thanks for your help. I should say this first. ^^ Anyway, I have an another question for you guys. I want to create a trigger which only fires when a certain column has changed. Can anyone help me out this? Many thanks in advance, |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Thanks Bill, I've got another question about your suggestion. How can I use Referencing NEW and OLD at the same time? I can't find any help or manual which contain this issue. could you please tell me how to do it ? or tell me where I can find? Thanks alot, |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Thank very much Bill. I've got one more question for you if you don't mind. I've tried to create a trigger with your suggestion. However, I've got an error message. Here is my trigger. CREATE TRIGGER UptTrig AFTER UPDATE ON psqlTest REFERENCING OLD AS Olddata NEW AS Indata FOR EACH ROW BEGIN IF Indata.tName <> Olddata.tName THEN INSERT INTO psqlTemp (id, tName, tDesc, tOrderDate, cond) VALUES(Indata.id, Indata.pName, Indata.pDesc, Indata.pOrderDate, 'U') END; The error message is "[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface][Data Record Manager][SPEng]9: 'END': Syntax error" FYI, I am using psql 2000i sp2. Thanks again. |
![]() |
| Thread Tools | |
| Display Modes | |
| |