Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rule lost when making candidate index.
Message
De
04/10/2001 07:04:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00563763
Message ID:
00564023
Vues:
27
>With vfp6 you could create a rule for a field on a table:
>ALTER TABLE (lcfilename) ALTER COLUMN &lcFieldName SET CHECK &lcFieldCheck
>followed by an index command:
>ALTER TABLE (lcfilename) ALTER COLUMN &lcFieldAndDataType UNIQUE
>
>With vfp7 you must make the index first or you will lose the rule? Anyone else notice this?

Yes,
Right you lose it. This works however :

ALTER TABLE (lcfilename) ;
ALTER COLUMN &lcFieldAndDataType ;
CHECK &lcFieldCheck ;
UNIQUE

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform