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 moveToInsertRow() 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 "moveToInsertRow()" Watch "moveToInsertRow()" New topic
Author

moveToInsertRow()

ramchander yshetti
Ranch Hand

Joined: Apr 22, 2006
Posts: 97
hai good morning,
moveToInsertRow()
....
...
...
insertRow();

is inserting the record at end of the table sometimes,
sometimes it is inserting middle of the table.
why it happens so.

and
when we use moveToCurrentRow()
give one example.

thank q

bye
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Yathamshetti,
The database can store records within a table in any order it pleases. The ordering methods only apply to your ResultSet object.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: moveToInsertRow()
 
Similar Threads
session tracking
Updateable ResultSet just for doing inserts: good idea?
Doubt on Servlet having database connection?
Inserting data into database
JavaDb creating table error