Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Prevent Field Aliasing In SQL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00938084
Message ID:
00938124
Vues:
35
Since you do not want to list out all the field, you could try:
SELECT TempLn.CustID as CustID, TempLn.*, BSpotDt.*;
 FROM TempLn;
 JOIN BSpotDt ON TempLn.BoIdBase = BSpotDt.BoIdBase;
 WHERE &cSqlCmd2;
 INTO table Results
The CustIDs in TempLn.* and BSpotDt.* will still be aliased.

>I have a custid field in 2 tables.
>
>When I do;
>
>
>SELECT TempLn.*, BSpotDt.*;
> FROM TempLn;
> JOIN BSpotDt ON TempLn.BoIdBase = BSpotDt.BoIdBase;
> WHERE &cSqlCmd2;
> INTO table Results
>
>
>The custid then appears as custid_a and custid_b.
>
>Any way to prevent this from happening?
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform