SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Originally posted by Peter den Haan:
See java.sql.Statement.addBatch(), java.sql.Statement.executeBatch().
HTH
- Peter
SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
Originally posted by Gaurav Chikara:
in my case i hvae to use same statement for inserting records in the db
and unless we commit first insert we cannot insert next statement
as it locks the row in which we intend to insert
i hope u get wht i m trying to explain
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Originally posted by Ajay Singhal:
hi! friends
as u r trying to store vectors in database. can i store my java object in database like Emp.
if yes pls. specify how!!!
Ajay Singhal
SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
Originally posted by stucko stuck:
i too have the same problem,
i want to insert a number og records from a table into another table.
SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Jeanne Boyarsky:
Gaurav,
Most databases allow a statement like this:
It lets you insert data into a table directly from another query.
SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Gaurav Chikara:
Peter den Haan did replied to this query a couple of years back and he was right.I dont know what you meant by
"How about insert as select"
Consider Paul's rocket mass heater. |