2 views
Question: How would i write this sql statement without a hard coded value? resultSet = statement .executeQuery("select * from myDatabase.myTable where name = 'john'"); // this works rather have something like: String name = "john"; resultSet = statement . ... ); // Unknown column 'john' in 'where clause' at // sun.reflect.NativeConstructorAccessorImpl.newInstance0...etc... Thanks in advance.
asked
2 days ago
Atik03
10.1k points