Difference between Statement and PreparedStatement

前端 未结 15 1114
野的像风
野的像风 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 02:58

    Statement is static and prepared statement is dynamic.

    Statement is suitable for DDL and prepared statment for DML.

    Statement is slower while prepared statement is faster.

    more differences (archived)

提交回复
热议问题