File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes insertRow or SQl query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "insertRow or SQl query" Watch "insertRow or SQl query" New topic
Author

insertRow or SQl query

aakash bhatt
Ranch Hand

Joined: Jan 09, 2003
Posts: 182
is it better to use rs.insertRow through a resultset or by an statement of SQl query through a connection object.
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Its better to use prepared statement to insert the record in database. Its more efficient. I think most of the drivers not support insertRow.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: insertRow or SQl query
 
Similar Threads
Oracle help
How to Find Out There Are Identical Records Without Using the Select?
Hibernate Query taking long time
Transfer Excel Sheet information to database
auto generated unique Id?