Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UNION and order
Message
De
26/04/1999 13:54:40
 
 
À
26/04/1999 13:50:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00212225
Message ID:
00212226
Vues:
22
>I'd like to combine 3 tables using UNION. But I dont need any order, I'd like to keep records in order they come from tables:
>table1, table2, table3.
>Is it possible?
>Thanks Mark

You can make it sure by adding one new field:
Select 1 as listorder, * From table1 ;
Order by 1 ;
Union All Select 2 as listorder, * From table2 ;
Union All Select 3 as listorder, * From table3 ;
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform