• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing a row

 
harivarma mudunuru
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can I access a particular row from the database directly using jdbc?
 
Apu Nahasapeemapetilon
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, JDBC will allow one to access a DB with all of the privileges of the User/Password that you use to connect to the DB.
Depending upon how you want to do it, create a PreparedStatement, set the SQL string property and the run the appropriate execute method. This will return a ResultSet that will contain the row you desire.
I can give you a short example iffin you need more info.
 
Eung maeng
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please give me a good example as soon as possible.
cheers,
Paul
pmaeng@kaita.org.au
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic