Subject | Re: [ib-support] Creating a foreign key |
---|---|
Author | Daniel Rail |
Post date | 2002-06-27T14:32:03Z |
At 27/06/2002 10:58 AM, you wrote:
key in the CREATE TABLE statement.
creating foreign keys with CREATE TABLE.
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.accramed.ca)
>What is the code for adding a foreign key to a table, just a simple foreignYou need to use ALTER TABLE, once the table is created or add the foreign
>key from one table to another?
key in the CREATE TABLE statement.
>Creating one table is simple enough, but then when you create the secondYes you can. Look in the Language Reference Guide for more information on
>table with a foreign key to the first, can you specify that a field is a
>foreign key at the time you create the second table?
creating foreign keys with CREATE TABLE.
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.accramed.ca)