Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating dependant tables in SQL DataBase. 1

Status
Not open for further replies.

delphiman

Programmer
Dec 13, 2001
422
ZA

I find that the following does not work in creating a SQL DataBase.

In particular in the IBConsol table CHILD does not show as being dependant upon table PARENT nor does table GCHILD show as being dependant upon table CHILD.

ALTER TABLE CHILD ADD CONSTRAINT FOREIGN KEY (P_NO) REFERENCES PARENT (P_NO);
ALTER TABLE GCHILD ADD CONSTRAINT FOREIGN KEY (C_NO) REFERENCES CHILD (C_NO);

Any suggestions anyone?
 
Try to delete parent wich have a child, you will get an access denied from Interbase.
The IBConsole is very limited in my opinion to show the funcionality of the Database.

With the SQL-explorer I can see the foreign keys and the tables related to Steven van Els
SAvanEls@cq-link.sr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top