how would i write this sql statement without a hard coded value?
resultSet = statement .executeQuery(\"select * from myDatabase.myTable where name = \'jo
this should work:
String name = "john"; resultSet = statement .executeQuery("select * from myDatabase.myTable where name =" + "'" + name + "'");