Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add primary key expression
Message
De
17/04/2001 08:25:51
 
 
À
17/04/2001 06:47:43
Peter Wagner
Point Informática Ltda.
Limeira, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00496027
Message ID:
00496054
Vues:
10
>In VFP 6.0 help file the ALTER TABLE command says:
>
>ADD PRIMARY KEY eExpression3 TAG TagName2 [FOR lExpression4]
>
>But if I try to write something like this:(just a sample)
>
>ALTER TABLE 'TABLE1' ADD PRIMARY KEY cust_id TAG cust_id FOR !DELETED()
>
>VPP returns sintax error.
>
>Does someone know why ? or its a error in VFP help file.
>
>If I alter the table with the VFP GUI it works fine ! why it doesnt work if I try programatically ?
>
>TIA
>Peter Wagner

Don't put quotes around the table name. Note also that this index will not be used by Rushmore because of the FOR condition.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform