Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop through a result set
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Loop through a result set
Divers
Thread ID:
01116848
Message ID:
01116848
Vues:
66
How do I loop through a result set using T-SQL?

Something like this pseudo code:
SELECT pk from mytable where fk = @fk

foreach_row_in_result_above
{
  do something with the fk from the row (pass fk to another SP)
}
Any help would be appreciated.

Thanks,
Einar
Semper ubi sub ubi.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform