Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select with a field before myfile*
Message
De
09/02/2022 00:25:37
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01683492
Message ID:
01683494
Vues:
40
>Hi,
>
>I have come across the following problem.
>
>I have the following segment in a SQL Select:
>
>select RF_FILE.RISK_FACT, EQ_FILE*. FROM EQ_FILE JOIN RF_FILE ON RF_FILE.RF_PK = EQ_FILE.RF_PK
>
>
>In SQL Server, because the field RISK_FACT appears before the EQ_FILE*., the column RISK_FACT is selected from the RF_FILE. But when using a VFP database, the SQL Select gets two fields RISK_FACT_A and RISK_FACT_B, one from each table.
>
>So, the SQL Server works as I want it. But with VFP database, it does not work.
>
>Is there a way to change the above SQL Select in VFP so that the column RISK_FACT is selected from the RF_FILE (without added _A or _B)?
>
>TIA

Yesss.
Do not use * in SQL select. Why you allowed to, it's unwise.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform