Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ALTER TABLE tablename ADD FOREIGN KEY
Message
De
25/08/1998 09:57:47
 
 
À
24/08/1998 18:23:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00129499
Message ID:
00129674
Vues:
23
>I have been trying to use the ALTER TABLE command to create a new non-primary index on a table contained in a database container. I followed the example from the Help screen and the Developer's Guide, but every time I try to code the command in a PRG and try to save it (with the Compile option upon Save) I get a Syntax Error so I can't even save the PRG file.
> Am I missing something? Does anyone have input that could help me get past this problem? Any feedback would be greatly appreciated.
>
> Rudy Nieves
> FOCUS Computer Management & Consulting
ADD FOREIGN KEY would be used to programmatically add a persistent relationship between two tables in a DBC. The complete syntax needs the .. REFERENCES parent_table TAG parent_primary_key. As B.Paltiel said, if you need non-primary index in this table INDEX ON .. TAG .. will suffice.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform