Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete Top 1??
Message
De
25/03/2003 12:14:27
 
 
À
25/03/2003 11:59:13
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00769778
Message ID:
00769787
Vues:
22
What about adding an IDENTITY column to your temp table and use it as the PK for the table?

-Mike

>Hi,
>
>I want to loop through a number of rows, Select the Top 1 row from a temp table and insert into a permanent table.
>After inserting the row, I want to be able to delete the row thats was inserted from the temp table.
>
>Any ideas on how I could do this.
>When I select the Top 1 row from the temp table, there arent any unique values that I can use for deletion.
>
>Thanks,
>
>Alvin
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