Meaningless Drivel is fun!
The moose likes JDBC and Relational Databases 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 2551
    
  10

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


OCUP UML fundamental and ITIL foundation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why ResultSet's index Starts with '1' instead of zero?
 
It's not a secret anymore!