Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Delete a variable number of records

$
0
0

Can I do something like this?

DECLARE @del AS INT
SET @del = 10

DELETE TOP(@del) FROM TABLE


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>