Board index » delphi » Foreign keys and Secondary keys

Foreign keys and Secondary keys

Hi,

I have 2 questions

- Does Interbase 6 have something like a Secondary Keys ?

- I want to use a Foreign key : And I'm not sure what is better  :
        - To link to a numeric (autocreated number) field in the foreign table
        - or to directly link to the charakter field in the foreign table that I will be needing to present.
  What are the Advantages and disadvantages.

When I have multiple foreign keys and I use the numeric, I have to load all the presentation values from the different tables.

thanks,
Bryan

 

Re:Foreign keys and Secondary keys


Hi,

Quote
> I have 2 questions

> - Does Interbase 6 have something like a Secondary Keys ?

As in other unique constraints? Yes, take a look at the UNIQUE
CONSTRAINT in the Language Reference of the InterBase
documentation.

--
Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com

Upscene Productions
http://www.upscene.com

"This is an object-oriented system.
If we change anything, the users object."

Other Threads