Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of a field name DESC in SQL
Message
From
30/09/2001 12:13:56
 
 
To
30/09/2001 11:07:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00562338
Message ID:
00562340
Views:
15
>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.

DESC is a keyword in both VFP-SQL and T-SQL, as in:
SELECT Name, City ;
FROM Customers
ORDER BY Name DESC
so I would avoid it as a field name.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform