This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 30130
    
150

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: moveToInsertRow()
 
Similar Threads
Doubt on Servlet having database connection?
JavaDb creating table error
Inserting data into database
Updateable ResultSet just for doing inserts: good idea?
session tracking