Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper syntax when using UNION
Message
De
24/01/2002 12:23:17
 
 
À
23/01/2002 17:57:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00609414
Message ID:
00609852
Vues:
15
Use the following syntax:
SELECT NOCLIENT,NOCAT,NUMERO,NOMEMBER,NOPARENT,NOTHREAD,ADDDATE,ADDHEURE,TITLE,.T. AS FLAG,1 AS ORDERF ;
 FROM THREAD WHERE NoClient=5 AND NUMERO>=600000;
UNION SELECT NOCLIENT,NOCAT,NUMERO,NOMEMBER,NOPARENT,NOTHREAD,ADDDATE,ADDHEURE,TITLE,.T. AS FLAG,0 AS ORDERF;
 FROM THREAD WHERE NoClient<>5 AND NUMERO>=600000;
 ORDER BY ORDERF DESCENDING,NOCLIENT,NOCAT,NOTHREAD,NOPARENT INTO CURSOR TEMP READWRITE
HTH
(btw. do not put in in the Toledo Wish list {g})
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform