Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select statement syntax
Message
De
30/07/1999 18:08:44
 
 
À
29/07/1999 20:12:37
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00248012
Message ID:
00248428
Vues:
19
Jason,

Usually SQL is considered SET oriented instead of RECORD oriented. If you wanted to pull back the children for a specific parent, you'll specifically pass the parent's PK with the query against the child table. After SQL Server returns a result set to you, it has no idea what your doing with it.

SELECT * FROM child_table WHERE FK = FK_From_Parent

It's up to you to properly construct the query and submit it to the server.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform