Here in my code i have the operation of getting the Maximum primary key and i have to make use for numbering the persons registering.
QUERY
Here in this query it results as
person_id
5
Then how can i read the value of the person_id in the
java program. As i had tried to make use of the getInt(),getString() methods with the result set where it specifies the output as
java.sql.SQLException: No current row in the ResultSet.
I am not sure how to solve this problem.