MySQL Forums
Forum List  »  Newbie

Re: alter table .... add constraint
Posted by: REMI VERVECKEN
Date: April 17, 2012 07:51AM

Hallo,

I think you cut and pated from a manual.

The "|" means "or". you can only take one of the commands i.e.

ALTER TABLE tbl1
ADD CONSTRAINT fk1
FOREIGN KEY (col1)
REFERENCES reftbl (refcol);

where <refcol> must be primary and unique.

hope this helps.

Thanks to Peter Brawley, who put me on track.

-------------------------------------------------
Computer Technology Support & Consulting
www.ctsc.de

Options: ReplyQuote


Subject
Written By
Posted
Re: alter table .... add constraint
April 17, 2012 07:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.