Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Escaping reserved words
Message
De
29/11/2011 06:41:46
 
 
À
29/11/2011 06:11:43
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
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 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01529929
Message ID:
01529956
Vues:
40
>>>>SeatsRow? :-)
>>>Hi,
>>>cRow or nRow or iRow depending on its type
>>>
>>>would do
>>>
>>>Koen
>>
>>It is not a good idea in SQL Server to add field type as part of a column's name.
>
>SQL server doesn't care. You can actually use any keyword as a field name, even names with spaces (seen this in converted Access apps), as long as you write them in brackets.
>
>OTOH, I've found the practice of prefixing field names with xxx_ (where xxx is the same for all fields in one table, and unique to that table) very useful foxside, so the field names are never confused with variables. And then there was one metadata table where this rule wasn't respected, and it took half an hour to track one nasty bug caused by an overlap of a variable and a field name.


> I've found the practice of prefixing field names with xxx_

+1
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform