Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of a field name DESC in SQL
Message
 
À
30/09/2001 23:40:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00562338
Message ID:
00562873
Vues:
20
PMJI, but you may be having problems because DESC is a reserved word. You can either rename the field, or use the AS clause to use a different field name in the resulting cursor.

>>>
>>>No, this is exactly what I have. All my fields are always prefixed with the alias. And, I still have the behavior.
>>
>>That's unfortunate, I've never had that. I imagine that it is intermittant in that the SQL sometimes works and sometimes doesn't: it must be related to queries run before, perhaps, or if you have read the field into memory. I would guess that it doesn't happen the first time that you read it (otherwise you would not have been able to design the thing in the first place).
>>
>>What is the error message?
>
>It says DESC is not found as the field is evaluated to an EXP_1. Basically, the error is generated from the next line which deals to read the DESC field. The problem is that the SQL is sometimes evaluating it and sometimes not. So, if I reference to DESC after, I may have the error.
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform