|
-
Dec 20th, 2006, 09:27 AM
#1
Thread Starter
Hyperactive Member
SQL for inserting 1000's of numbers [resolved]
I want to insert values from
712000 to 713999 into a database
eg I want to loop through
x = 712000
while x < 714000
INSERT INTO tbRoute
(val1)
VALUES (x)
x = x + 1
loop
Can I do this in SQL (I am using SQL server), rather than having to code a trivial program.
Thanks
Last edited by Oliver1; Dec 21st, 2006 at 10:46 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|