This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes IS there any function to get entire row Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "IS there any function to get entire row" Watch "IS there any function to get entire row" New topic
Author

IS there any function to get entire row

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Hey Ranchar i would like to know one thing that to get the result of a particuar columns we use the function like getString(),getInt() so that we can get particular columns from result set. Is there any function so that we can get entire complite one row at a time from ResultSet .

Regard

Arun
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1318

Originally posted by Arun Maalik:
Is there any function so that we can get entire complite one row at a time from ResultSet .



didn't get what you trying to do.. ?


Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
well now see i have written a code like below



Now suppose authors table has 3 columns now i want to see contents of these 3 columns on output console at same time then i have to use 3 time rs.getString() (if all 3 columns contane string data ) like

rs.getString(1);
rs.getString(2);
rs.getString(3);

Now i want to know that is there any function so that i can get complite 3 columns that is complite row at a time without using columns function like rs.getString()
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1318

I think your first place to be find you answer in ResultSet Java Doc.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: IS there any function to get entire row
 
Similar Threads
Better way to generate Primary Keys in EJB ?
whats the best way ?
Vectors
distinct column records
Returning just a STRING from.......