Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    I don't think you can replace objects with parameters. Commented Sep 12, 2016 at 13:33
  • Test with upper code is working but with errors. Commented Sep 12, 2016 at 13:35
  • 1
    Why not just include logic in your Java code to determine which column to update? Or, better yet, craft the logic of your query to handle this. Commented Sep 12, 2016 at 13:36
  • 1
    Possible duplicate of PreparedStatement: Can I use the column name as parameter? Commented Sep 12, 2016 at 14:36