Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query help(list recurring records in a DB)
Message
 
 
À
22/04/2010 12:57:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01461504
Message ID:
01461531
Vues:
36
>oh that fbobname is a bad variable srry. but u use T can you tell me what T is?

T is the alias (a shortcut) you can use to simplify the query.

Say,

select MyFirstTableName.Field1, myFirstTableName.Field2, MySecondTableName.Field1 from myFirstTableName inner join
mySecondTableName on myFirstTableName.PK = mySecondTableName.FK

is the same as

select T1.Field1, T1.Field2, T2.Field1 from myFirstTableName as T1 inner join
mySecondTableName as T2 on T1.PK = T2.FK

You can give aliases to the tables and also to the fields. If you're using a derived table, then you MUST give it an alias.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform