InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InstantDB: Problem with multiple promary Keys


For a two element unique primary key:

CREATE TABLE t2 (
    k1 long,
    k2 char(10),
   data2 char(128) )
  UNIQUE (k1,k2)
  PRIMARY KEY (k1,k2)

You need the UNIQUE because PRIMARY KEY is non-unique in instantdb.
Of course, I don't know if the PRIMARY KEY then adds anything or if a 
second non-unique index structure is created if you have both.

Scott Plante

> -----Original Message-----
> From: sharathbabu Krishnarao [mailto:sharathbabuk1@yahoo.com]
> Sent: Thursday, March 01, 2001 12:30 PM
> To: instantdb@enhydra.org
> 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.
> 
> 

-----------------------------------------------------------------------------
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.