Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • 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
Marshal
Posts: 34071
331
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic