I\'m trying to use prepared statements to set a table name to select data from, but I keep getting an error when I execute the query.
The error and sample code is di
I'm not sure you can use a PreparedStatement to specify the name of the table, just the value of some fields. Anyway, you could try the same query but, without the brackets:
"SELECT plantID, edrman, plant, vaxnode FROM ?"