[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-sql
Subject:    Re: [SQL] On delete cascade!
From:       Erle Czar Mantos <erle () hindang ! msuiit ! edu ! ph>
Date:       2002-02-26 7:53:02
[Download RAW message or body]


To You:
  The problem is on the comman after the word "socio", it shouldn't
have been there!

                                                   Erle

On 14 Jan 2002, Paulo J. Matos wrote:
> Hi all,
>
> On weak entities I've used ON DELETE CASCADE as mentioned in
> "Databases Management Systems" by Raghu Ramakrishnan. But I get:
> psql:tables.sql:43: ERROR:  parser: parse error at or near "ON"
>
> on tables like the following:
>
> CREATE TABLE socio_ilumindado (
> 	cognome varchar,
> 	id integer,
> 	nome varchar,
> 	alcunha varchar,
> 	data_filiacao date,
> 	PRIMARY KEY(id),
>  	FOREIGN KEY(id, nome, alcunha, data_filiacao) REFERENCES socio,
> 	ON DELETE CASCADE);
>
>
> How can I change this to be compatible with postgresql?
>
> TIA,
> Best regards,
>
>


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic