954,559 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Sql insert into

hi everyone, i just want to ask if it is possible for the SQL INSERT INTO to LOOP? for example, insert new records in TABLE ten times with the same values (colum1,column2,column3,etc..) is there an alternative way instead of typing (INSERT INTO.. 10x) statement repeatedly. thanks.

arvin2006
Junior Poster in Training
69 posts since Sep 2006
Reputation Points: 15
Solved Threads: 4
 

Hi,

I dont think so such query exist but u can use like this

INSERT INTO VALUES ( .... ) , ( .... ) , ....


Make such SQL and Execute the single query.

selvaganapathy
Posting Pro
547 posts since Feb 2008
Reputation Points: 44
Solved Threads: 100
 

you can use loop inside a sub program for the purpose.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You