Something like
CREATE TABLE a_table (
pk1 int,
pk2 int
) UNIQUE (pk1, pk2)
should work, hopefully :-)
Judith
----- Original Message -----
From: "sharathbabu Krishnarao" <sharathbabuk1@yahoo.com>
To: <instantdb@enhydra.org>
Sent: Thursday, March 01, 2001 9:29 PM
Subject: InstantDB: Problem with multiple promary Keys
> I have a table which has 2 primary keys say PK1 & Pk2.
> I want a UNIQUE (PK1 & PK2) combination, with PK1 &
> PK2 non-UNIQUE, how to do this ?
>
> If i specify UNIQUE to both PK1 & PK2 then in can't
> repeat PK1 or PK2.
>
> Is there a way to specify UNIQUE Column combinations
> at a table level ?
>
> Thanx
> Sharathbabu Krishnarao
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
> --------------------------------------------------------------------------
---
> To unsubscribe from this mailing list, send email to majordomo@enhydra.org
> with the text "unsubscribe instantdb" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-instantdb@enhydra.org.
>
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|