Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Searching for employee details in the MySQL database

 
vernon mweetwa
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i am developing a program that needs to be used to search for employee details in our organisation. I would like either the firstname or the surname to be used as a search string. What i mean is if anyone wants to search for another person's details then they have to enter either the firstname or the surname to view their information.

How do i wrute a program that would iterate through the database and bring any records that would match the name provided by the user?

Your response will be highly appreciated.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would start by searching the web for some JDBC and SQL tutorials.
I would then look for a servlet/JSP tutorial.

If you haven't already, you should follow some Java tutorials before starting either of the above.
 
magic zha
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refer to some JDBC tutorials.
It is very easy.I think you will solve it in 20 minutes.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to JDBC..
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
though your post is now in JDBC forum but answer is same as Ben said

Shailesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic