|
Re: traduzir de TRIGGER pra DDL >> ta certo?: msg#00679db.postgresql.brasil
On Fri, 2003-03-28 at 18:24, luciana-9Mglyldi0cvQ4tFLR8X5nw@xxxxxxxxxxxxxxxx wrote: > to tentando traduzir . ta certo ? Trabalho de mouro... se não tiver outro jeito, tente criar um programinha para fazer isso. > ON tabela_da_FK > <nomedatriger> 'tabela_da_FK', 'tabela_da_PK', 'unspecified', > 'campo_tabela_da_FK', 'campo_PK_da_tabela_da_PK' > > vira > > FOREIGN KEY ( campo_tabela_da_FK ) REFERENCES tabela_da_PK ( > campo_PK_da_tabela_da_PK ) Não esqueça do nome da restrição... CONSTRAINT <restrição> FOREIGN KEY ... E não esqueça que tanto as chaves primárias quanto as estrangeiras podem ser compostas. -- _ Leandro Guimarães Faria Corsetti Dutra +41 (21) 648 11 34 / \ Lausanne, Vaud, Suisse +41 (78) 778 11 34 \ / Brasil +55 (11) 5686 2219 / \ http://geocities.yahoo.com.br/lgcdutra/ ---------------------------------------------------------- Grupo PostgreSQL Brasil. Fundado em 1999. Mensagens para: postgresql-br-EYaqaC9dFX8MqA7zqLjoiV/I71DsQ//L@xxxxxxxxxxxxxxxx Desassociação: postgresql-br-unsubscribe-EYaqaC9dFX8MqA7zqLjoiV/I71DsQ//L@xxxxxxxxxxxxxxxx Site Web: http://br.groups.yahoo.com/group/postgresql-br Seu uso do Yahoo! Grupos é sujeito às regras descritas em: http://br.yahoo.com/info/utos.html |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: OFF: Cygwin: 00679, Leandro Guimarães Faria Corsetti Dutra |
|---|---|
| Next by Date: | Re: Logs e Logrotate: 00679, Renê Salomão |
| Previous by Thread: | traduzir de TRIGGER pra DDL >> ta certo?i: 00679, luciana-9Mglyldi0cvQ4tFLR8X5nw |
| Next by Thread: | integração com SIG: 00679, PostgreSQL |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |