Having a Column name as Input Parameter of a PreparedStatement

No, JDBC does not allow this. Only column values can be set. If you want to make dynamic changes to the sql statement you will have to do it before you create the PreparedStatement.

Leave a Comment