Subject | Re: [ib-support] check syntax (a new question) |
---|---|
Author | Claudio Valderrama C. |
Post date | 2002-01-26T06:59:35Z |
"Duilio Foschi" <dedalus@...> wrote in message
news:3.0.1.32.20020125210751.006c6430@......
add constraint ynmov foreign key(y_mov, n_mov)
references master(y_mov, n_mov)
[on delete <action>] [on update <action>];
(The last line above ONLY if you need cascade RI.)
It's time that you invest efforts reading LangRef, man. This is the same
command that Lucas Franzen gave you. Exactly the same, but with two columns.
C.
--
Claudio Valderrama C. - http://www.cvalde.com - http://www.firebirdSql.org
Independent developer
Owner of the Interbase® WebRing
news:3.0.1.32.20020125210751.006c6430@......
> I have to verify that the touple (Y_MOV,N_MOV) of a slave table isalter table slave
> contained in the master table.
add constraint ynmov foreign key(y_mov, n_mov)
references master(y_mov, n_mov)
[on delete <action>] [on update <action>];
(The last line above ONLY if you need cascade RI.)
It's time that you invest efforts reading LangRef, man. This is the same
command that Lucas Franzen gave you. Exactly the same, but with two columns.
C.
--
Claudio Valderrama C. - http://www.cvalde.com - http://www.firebirdSql.org
Independent developer
Owner of the Interbase® WebRing