• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to select from a row from a database using an id

 
Igbe Jr. Chukwudi
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gud day,thanks for your support before now.Am trying to retrieve a particular customer information from the database,but am confused on how to construct the method for this in my DATA ACCESS OBJECT CLASS
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36031
432
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The SQL is easy: select * from table where id = ?. Or similar depending on how many fields your key has.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!