Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Primary Key to Primary Key relationship
Message
From
04/01/2001 16:07:59
 
 
To
04/01/2001 15:56:27
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00459550
Message ID:
00459558
Views:
33
>The documentation seems to say that I can set a 1 to 1 relationship between tables with the command "Alter Table table1 references table2". However this gives me a syntax error, as does "alter table table1 references table2 tag mytag". Can anyone tell me what the syntax of the command to establish a 1 to 1 relationship between 2 tables with primary keys in a DBC? Thanks.

looks like it would be something like:
ALTER TABLE Table1 ADD FOREIGN KEY KeyExpression TAG TagName1 REFERENCES Table2 TAG TagName2
just from scratching my head over the docs...
Jim Newsom
IT Director, ICG Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform