File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes IS there any function to get entire row Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
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: 1321

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..
[Blog][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: 1321

I think your first place to be find you answer in ResultSet Java Doc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IS there any function to get entire row