Subject Re: [ib-support] Firebird SQL - Alter table command (does it work?) - BUG?
Author Luiz
----- Original Message -----
From: "Sanjay Amatya" <sanjayamatya@...>
To: <ib-support@yahoogroups.com>
Cc: <Firebird-Java@yahoogroups.com>
Sent: Thursday, April 25, 2002 6:51 PM
Subject: [ib-support] Firebird SQL - Alter table command (does it work?) -
BUG?


> ALTER TABLE TEST ADD CONSTRAINT PRIMARY KEY PK_TEST
> (OBJECTID, USERINSTID);
>
> Doesn't work. Is this a bug of Firebird SQL?
>
> I had a script that creates a number of tables then adds primary key to
fields. The
> script worked fine. Created tables. But no constraints added to table.

What about
ALTER TABLE TEST ADD CONSTRAINT PK_TEST
PRIMARY KEY (OBJECTID, USERINSTID);

Luiz