Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command to change and index expression
Message
De
13/09/1999 17:56:25
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
13/09/1999 16:45:18
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00264188
Message ID:
00264238
Vues:
29
>Mark,
>
>That just updates the existing index and doesn't add other, correct?
>
>>>I need to change and index expression from a table from the default (field name) to VAL(fieldname). I can do this easily in the Project Manager, but I need to do this on an installed site using commands in an update program.
>>>
>>>I thought I would use an ALTER TABLE command but do I need to DROP the FOREIGN key first (it's a 'regular' key) and then ADD the new key? What would the commands be>
>>>
>>>
>>>Thanks
>>
>>Since it is a regular key, there is nothing to drop, open the table exclusively and issue the command:
>>
>>INDEX ON VAL(fieldname) TAG tagname

Peter, you can also

INDEX ON VAL(FieldName) TAG ValFieldName ADDITIVE

and have both the new and the old index if you want.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform