I have a code that queries the database to get information about a bank customer,by comparing the Username and Pin. If they match then his balance is shown to him. else I want him to prompt for a corrct name and PIn.
PreparedStatement stmt = con.prepareStatement("Select * from BankAccount where DbUserName = ? and DbPin= ?");
We're pleased to have you here with us in the JDBC forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.