Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL error
Message
De
02/06/2003 22:03:38
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
02/06/2003 20:22:17
Seth Maxwell
Prospect Information Network
Daytona Beach, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00795477
Message ID:
00795498
Vues:
11
>I'm trying to do a SQL select statement through VFP but keep getting the error message SQL: 'Column 'confirmed' is not found'. The field 'confirmed' does exist in my table and the table is open, the alias is right. I don't understand what's wrong. Is confirmed a reserved word in SQL? Should I just change the field name? Here is the exact code that generates the error:
>
>SELECT * ;
>FROM _cdarest ;
>WHERE !DELETED() ;
>GROUP BY prospectid, clinkflag, addr_num, predir, addr_name, addr_unit ;
>ORDER BY confirmed, LEFT(matchtype, 1) ;
>INTO TABLE _uniq
>
>Thanx, SETH

I suspect that the other part of the ORDER BY is causing trouble. I think you can only use fieldnames here, not any expression.

Try to eliminate parts of the SQL statement, until it works (or start with a basic statement, and add parts until it doesn't work).

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform