How to check the identity of a value in the h2 database with the value of a variable of type String ?
r=stat.executeQuery("SELECT * FROM USER WHERE LOGIN ='data'"); Instead of the text data, a variable of the String type should be passed:
r=stat.executeQuery("SELECT * FROM USER WHERE LOGIN =login");
Use PreparedStatement also failed.