Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL - What's different?
Message
De
23/01/2003 11:45:04
 
 
À
23/01/2003 10:49:44
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00744726
Message ID:
00744761
Vues:
15
SELECT f1, f2, f3 FROM table1 t1 LEFT JOIN table2 t2 ON t1.field1 = t2.field1
>Hi!
>
>If used SQL how BD with SqlExec() function, you can do Left Join in 1st case thus:
>
>
>SELECT field1, field2, field3 FROM table1, table2 ;
>WHERE table1.field1 *= table2.field1
>
>Bye!
>
>>The 2nd version (using the JOIN syntax) is preferred as it allows things >like LEFT OUTER JOINS.
>
>>>When I first learned SQL syntax, I wrote my own selects like
>>>
>>>SELECT field1, field2, field3 FROM table1, table2 WHERE table1.field1 = table2.field1
>>>
>>>Now, I'm using VFP 7/8 View Designer, and their format for the same would be
>>>
>>>SELECT field1, field2, field3 FROM table1 INNER JOIN table2 ON table1.field1 = table2.field1
>>>
>>>So, I'm wondering what/why the difference is between the statements.
>>>
>>>Chris.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform