Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a name expression be used in the ORDER BY clause?
Message
 
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 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01321710
Message ID:
01321716
Vues:
10
Name Expression cannot but macro substiotuion can be used
  ORDER BY &lcSQLSortCol
>Can a name expression (or Macro) be used in the ORDER BY clause of a SELECT statement? I have tried the following, but get an error.
>
>
>m.lcSQLSortCol = "lastname"
>
>SELECT PatientID, lastname, firstname FROM Patients INTO CURSOR csrResult ;
>  ORDER BY (m.lcSQLSortCol)
>
>
>I get the error: SQL: Column 'LCSQLSORTCOL' is not found
>
>Thanks for your help.
>
>Jim
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform