Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of a field name DESC in SQL
Message
 
 
À
30/09/2001 11:07:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00562338
Message ID:
00562403
Vues:
18
Hi!

I guess it is depended on the internal VFP logic and it is quite hard to tell about behavior of VFP in such case. Just use of rererved words is not recommended, however, this does not means that every reserved word will cause error for sure. Just inpredictable behaviour.

BTW, in addition to what Alex said about DESCRIPT, in our databases we usually use type prefix for fields (naming conventions) either in VFP or SQL Server database, so our field in such case will look like 'mDesc' that eliminate most if not all problems related to reserved words.

>As someone found the logic of VFP when using a field name DESC in a SQL? Sometimes, the same SQL will generate an error if a field name is Desc. Most of the times it'll work.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform