Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00205791
Message ID:
00205793
Vues:
20
>Does anyone know the syntax for
>macroing an order by clause into
>an SQL statement.
>
>I tried both
>
>cOrder = "Field1 + Field2"
>SELECT flds;
> FROM Table
> ORDER BY (cOrder)
> INTO CURSOR tmp
>
>and
>
>cOrder = "Field1 + Field2"
>SELECT flds;
> FROM Table;
> ORDER BY &cOrder;
> INTO CURSOR tmp
>
>Both cause an error.

cOrder = "1,2"
SELECT * ;
FROM Table;
ORDER BY &cOrder. ;
INTO CURSOR tmp
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform