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:
00938096
Vues:
30
You need to name them with the AS clause:
SELECT TempLn.CustID AS CustID1, <other TempLn fields here>,;
 BSpotDt.CustID AS CustID2, <other BSpotDt fields here>;
 FROM TempLn;
 JOIN BSpotDt ON TempLn.BoIdBase = BSpotDt.BoIdBase;
 WHERE &cSqlCmd2;
 INTO table Results
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform