Mysql中的Statement、PreparedStatement 和 CallableStatement

首先,官方对于这3个接口的定义是这样的: PreparedStatement是用来执行SQL查询语句的API之一,Java提供了 Statement、PreparedStatement 和 CallableStatement三种方式来执行查询语句,其中 Statement 用于通用查询, PreparedStatement 用于执行参数化查询,而 CallableStatement则是用于存储过程
相关文章
相关标签/搜索