Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field naming conventions
Message
De
18/02/2008 23:56:50
 
 
À
18/02/2008 16:54:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01293572
Message ID:
01293683
Vues:
15
>If it has 'ID' as part of the name, then it's an Identity field and should be used as such, for example PersonID, MemberID.
>If tables share a field, then name it the same. Many years ago, I supported a system written in Fox by a COBOL programmer and shared fields had a "This is the table it comes from" prefix. So much for scatter/gather.

Working with tablenames added to the fields creates more code and is a royal pain - I have to interface to such a system. On the Key fields, I have worked in a place where the rule was "ID"+table and one that used "pk"+table and "fk"+table to further identify key type and I think ID is enough.

my 0.02 EUR

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform