![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What is wrong on my trigger ? CREATE TRIGGER tr_1 BEFORE INSERT ON Table1 REFERENCING NEW AS new_Table1 FOR EACH ROW BEGIN insert into Table2 (DUMMIES) values(1) END |
#3
| |||
| |||
|
|
I wasn't aware that you could specify "before", "referencing ..." or "for each row" in sybase? But this >is maybe a feature of a newer version, with |
#4
| |||
| |||
|
|
Hi, "Kristian Damm Jensen" <REdammMOVE (AT) ofir (DOT) dk> schrieb im Newsbeitrag news:bvssdl$1060tm$1 (AT) ID-146708 (DOT) news.uni-berlin.de... I wasn't aware that you could specify "before", "referencing ..." or "for each row" in sybase? But this >is maybe a feature of a newer version, with which I am unfamiliar. My Database is an AS Enterprse 12.5 I'am not sure if "BEFORE" works but I found this http://manuals.sybase.com/onlinebook...164;pt=39077/* |
|
May be "for each row" won't work on an ASE 12.5 :-( |
#5
| |||
| |||
|
|
AS Enterprse 12.5 I'am not sure if "BEFORE" works but I found this http://manuals.sybase.com/onlinebook...164;pt=39077/* |
#6
| |||
| |||
|
|
Hi, "Kristian Damm Jensen" <REdammMOVE (AT) ofir (DOT) dk> schrieb im Newsbeitrag news:bvssdl$1060tm$1 (AT) ID-146708 (DOT) news.uni-berlin.de... I wasn't aware that you could specify "before", "referencing ..." or "for each row" in sybase? But this >is maybe a feature of a newer version, with which I am unfamiliar. My Database is an AS Enterprse 12.5 I'am not sure if "BEFORE" works but I found this http://manuals.sybase.com/onlinebook...8/@Generic__Bo |
|
May be "for each row" won't work on an ASE 12.5 :-( This is my complete script: create table Table2 ( Table2_ID numeric not null, NICKNAME varchar(100) null, constraint PK_Table2 primary key (Table2_ID) ); CREATE TABLE Table1 ( id numeric(10) IDENTITY PRIMARY KEY, DUMMIES numeric ); CREATE TRIGGER tr_Table2 BEFORE INSERT ON Table2 REFERENCING NEW AS new_Table2 FOR EACH ROW BEGIN insert into Table1(DUMMIES) values(1) END; -- |
#7
| |||
| |||
|
|
Your link references the ASA (Adaptive Server Anywhere) version of sybase not the ASE version. For ASE see the reference manual at http://sybooks.sybase.com/as.html "S. Stiller" <thinkman99 (AT) gmx (DOT) de> wrote in message news:40220c0f$0$16724$99d2ed3e (AT) news (DOT) highwayone.de... |
#8
| |||
| |||
|
|
Willie Kraatz wrote: Your link references the ASA (Adaptive Server Anywhere) version of sybase not the ASE version. For ASE see the reference manual at http://sybooks.sybase.com/as.html "S. Stiller" <thinkman99 (AT) gmx (DOT) de> wrote in message news:40220c0f$0$16724$99d2ed3e (AT) news (DOT) highwayone.de... Can anyone make a definitive statement as to which versions of Sybase have BEFORE triggers and which do not? |
#9
| |||
| |||
|
|
Can anyone make a definitive statement as to which versions of Sybase have BEFORE triggers and which do not? |
#10
| |||
| |||
|
|
On Thu, 05 Feb 2004 07:40:31 -0800, Daniel Morgan wrote: Can anyone make a definitive statement as to which versions of Sybase have BEFORE triggers and which do not? ASEnterprise does NOT have BEFORE triggers through 12.5.0.x. I haven't checked, but I don't think they are in 12.5.1 either. BEFORE triggers may be available in ASAnywhere - but I don't know or use that product personally. Michael |
![]() |
| Thread Tools | |
| Display Modes | |
| |