Having a Column name as Input Parameter of a PreparedStatement

前端 未结 1 1556
谎友^
谎友^ 2020-11-28 16:32

I already used the search here (and other forums as well) but haven\'t found an answer exacty to what I\'m trying to do.

I know that it can easily be done in some ot

相关标签:
1条回答
  • 2020-11-28 17:00

    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.

    0 讨论(0)
提交回复
热议问题