Difference between Statement and PreparedStatement

前端 未结 15 1137
野的像风
野的像风 2020-11-22 02:49

The Prepared Statement is a slightly more powerful version of a Statement, and should always be at least as quick and easy to handle as a Statement.
The Prepared Stateme

15条回答
  •  再見小時候
    2020-11-22 03:19

    Statement will be used for executing static SQL statements and it can't accept input parameters.

    PreparedStatement will be used for executing SQL statements many times dynamically. It will accept input parameters.

提交回复
热议问题