I need some help here, I need to add records to a database table and this table only has 1 column which is an int called numbers and this table already has 300 records and I need to add 2300 more rows while executing the query.
I put together a query here but I am not sure it will work so I need someone to look at it and make sure my query looks good or if I am missing something here.
query to add 2300 rows
DECLARE @Numbers AS INT
SET @Numbers = 301
WHILE @Numbers <= 2300
BEGIN
INSERT INTO dbo.Numbers VALUES(@Numbers)
SET @Numbers=@Numbers+1
END