I have database table name form. And this database has three columnns: key_id
, Key_name
, and key_value
. All the rows in the tables have different id, name, and value.
Lets say it has 100 rows, How would I go about getting values from certain rows, and not from other rows. For example, I want to get values from row 1-20, row 30, row 50-55 and row 80, etc.
How would I go about getting values in certain rows in java?
edit: each row are from a form. like row 1, key_name = name, key_value = john, row2 key_name = address, key_value = 123 main street, row 3 key_name = phoneNumber, key_value = 333-3333, and so on. Basically if you could imagine a job application, and each entry for firstName, lastName, address, etc, are entered into their own row, with their own value. I then need take the data from which ever role and replace certain text in a rtf document with the data (key_name) and show the key_value value, using java. I probably did not explain it right, but yeah???!? I need to know how to extract certain rows from a database using java.