I need a sample querry,for inserting bulk datas at a time..for Example if there are 200 records,without using looping concept,how to do insert all the records in mysql server..can any one help me out for this...
Deepthi Xavy wrote:for Example if there are 200 records,without using looping concept,how to do insert all the records in mysql server..
Why do you want to write down 200 SQL statement, if looping will make it in simple 2 line of code ?
Still, the JDBC Batch Updates will help
String s1="insert into table values('10','a');
String s2="insert into table values('2','b');
String s3="insert into table values('3','c');
int inserts = stmt.executeBatch();
Jothi Shankar Kumar wrote:You can also handle them using control files. I'm not sure if MySQL has such a thing, but I've done that using Oracle.
You mean to say the sqlldr facility given by Oracle, using control, data and log files!