I'm getting an error while executing following select query:
ResultSet rs = St.executeQuery("select * from login where username="+username+"and password ="+password);
And the exception is
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended.
Please let me know if the query is wrong syntactically.