This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
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

How to pick the data from the Table and keep in Hash map for the validation

 
sumanta panda
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

Suppose we have a database table called xyz.
We have read the data from the table and keep in HASHMAP.
Let say

I want data should read from Xyz Table and keep all the record in HASHMAP.
If (EMP_TYPE=EMP) THEN REPLACE ā€˜Eā€™
If (EMP_TYPE= CON) THEN REPLACE ā€˜Cā€™

Please help me for the needful.

Thanks in advance.

Regards,
Sumanta Panda
 
sumanta panda
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please suggest me for the needful.

Thanks and Regards,
Sumanta Panda
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a list of general questions there. Let's start with the first one, getting the data from a table:

JDBC Database Access Tutorial
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic