This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Why ResultSet's index Starts with '1' instead of zero? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Why ResultSet Watch "Why ResultSet New topic
Author

Why ResultSet's index Starts with '1' instead of zero?

Siva Arun
Greenhorn

Joined: Feb 23, 2010
Posts: 28
The Java used zero based indexing mechanism except JDBC. Is their any specific reason in the JDBC design to use non zero based indexing?


"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

They must have used the terminology of the relational database theory.


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why ResultSet's index Starts with '1' instead of zero?
 
Similar Threads
for loop bounds
Mistake in book
Getting the last element in ArrayList
basic interview question ?
arrayList.remove()