Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Join ALL fields from a second table
Message
De
08/05/2011 12:49:06
 
 
À
08/05/2011 12:44:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01510013
Message ID:
01510016
Vues:
76
>>Is there a Sql select command I can use which ALWAYS joins ALL fields from a second Table onto a main Table
>>
>>e.g. I have TABLE A with 100 records (Say Fields TA_1, TA_2, TA_3, TA_4, TA_5)
>>I have Table B with just one record and say 2 fields (TB_1, TB_2)
>>
>>I want to end up with All 100 records from Table A, and in each of these Records I want ALL fields from Table B
>>So I end up with 100 records with fields (TA_1,TA_2,TA_3,TA_4,TA_5, TB_1, TB_2) where TB_1 and TB_2 will always have same value,
>> which will ahve come from Table B
>
SELECT * FROM TableA CROSS JOIN TableB
This syntax is not supported by all SQL versions, and in particular not by VFP against DBFs.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform