how would i write this sql statement without a hard coded value?
resultSet = statement .executeQuery(\"select * from myDatabase.myTable where name = \'jo
Put quotes around your name value since it's a string.
name
"select * from myDatabase.myTable where name ='" + name + "'"