i am getting below exception
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?http://www.andhrabhoomi.net/' at line 1
I am trying to check whether a string exists in my data base or not
MY CODE:
sql = "SELECT url FROM data where url = ?"+ "string";
ResultSet rs = statement.executeQuery(sql);
System.out.println(rs);