Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
JDBC and Relational Databases
gettting value by column name vs index
rudra tripathy
Greenhorn
Posts: 25
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
Should we use rs.getString("columnname") or rs.getString(columnindex) and which one is fatser?
Paul Sturrock
Bartender
Posts: 10336
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Faster is neither here nor there.
Name is safer. If you change the order of fields in your select statement your index based logic is broken.
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
rudra tripathy
Greenhorn
Posts: 25
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks for the reply. Yeah.. Our architect is trying to push for column index and he claimed it is faster by column index. Tried googling, but couldn't get any definite answer for this.
Thannks
Rdura
Bear Bibeault
Sheriff
Posts: 67752
173
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Ask for proof.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
I'm just a poor boy, I need no sympathy, because I'm easy come, easy go, little high, little low, little ad
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to get values in an object?
query returning null
how to display more than one result from the db..
String to decimal?
java.sql.Timestamp to Oracle date
More...