• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IS there any function to get entire row

 
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.. ?
 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think your first place to be find you answer in ResultSet Java Doc.
reply
    Bookmark Topic Watch Topic
  • New Topic