Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A good naming convention for fields
Message
De
04/02/2001 12:35:25
 
 
À
04/02/2001 10:43:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00472294
Message ID:
00472310
Vues:
22
>Any comments on this naming scheme. I have been told that this is an OLD method and that the "NEW" thinking is to use :
>
>TRANSACTION
>id I(4)
>code c(10)
>productid I(4)
>clientid I(4)
>exported L(1)

You're going to get lots of differing opinions on this.

I prefer the method above-

I don't feel that you need to add a table prefix to each field because you know what table you're pulling from when you're querying the database, and once the field is in the result set, it's source table is irrelevant, and so your extra 3 characters just become baggage.

What's more, if you try to keep your field names under 10 characters, this practice robs you of 3 characters that could otherwise be used for being descriptive.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform