Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete all but top 100 rows
Message
De
16/05/2014 04:43:47
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01600029
Message ID:
01600087
Vues:
51
>>The simplest way will be (assuming you can truncate the table)
>>
>>select top (100) * into #SaveResults from TableToClean order by SomeColumn
>>truncate table TableToClean
>>insert into TableToClean
>>select * from #SaveResults
>>drop table #SaveResults
>
>Truncate?

That's the politically rectified expression for zap.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform