on 06-26-2005 10:10 AM
I am new to MaxDB, how do you insert multiple rows to the table
Thanks for your help
Hi,
Please check this weblog
/people/kathirvel.balakrishnan2/blog/2005/08/19/inserting-multiple-records-from-xml-files-into-maxdb-database
Cheers
Kathir~
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please find the solution below,
/people/kathirvel.balakrishnan2/blog/2005/08/15/inserting-multiple-records-into-maxdb-database
Cheers
Kathir~
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sam,
Check this one hope this will be helpful.
/people/kathirvel.balakrishnan2/blog/2005/01/25/batch-mode-operation-in-maxdb-using-maxdb-loader-and-java
cheers
Kathir~
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
it depends on the kind of interface do you use. For JDBC the following code snippet give you an example:
int numverOfRows = 100;
//prepare a statement
PreparedStatement batchInsert = connection.prepareStatement("INSERT INTO MYTABLE values (?,?)");
//add values
for (int i = 0; i < numverOfRows; ++i) {
batchInsert.setInt(1, i);
batchInsert.setString(2, "VALUE_"+i);
batchInsert.addBatch();
}
//execute the insert statement
batchInsert.executeUpdate();
Hope that helps,
Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.