Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01031413
Message ID:
01031415
Vues:
16
You can use UNION

>How do I do this in one command, so I get a combined table?
>The structures are identicle.
>
>
>cInvoiceId = PADR(cInvoiceId, 20)
>cStatName  = PADR(cStatName, 10)
>
>SELECT * ;
>  FROM Commits;
>  WHERE InvoiceId = cInvoiceId AND;
>        StatName = cStatName;				
UNION ALL ;
>SELECT * ;
>  FROM Commits_Hist;
>  WHERE InvoiceId = cInvoiceId AND;
>    StatName = cStatName;				
  INTO CURSOR TmpInv
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform