jdbc:题目3多选下列描述正确的是 选项 APreparedSatement是Satement的子接口B PreparedSatement可以解决sql注入问题但是效率比Satement低CPreparedSatement对于相同sql语句只会编译一次D Satement可以解决sql注入问题
选项:A、B、C
解析:
A. 正确,PreparedStatement是Statement接口的子接口。
B. 正确,PreparedStatement可以通过参数绑定的方式避免SQL注入,但是相对于Statement而言,PreparedStatement的效率较低。
C. 正确,PreparedStatement对于相同的SQL语句只会编译一次,可以提高执行效率。
D. 错误,Statement无法避免SQL注入问题,容易受到恶意攻击。
原文地址: https://www.cveoy.top/t/topic/g8Wg 著作权归作者所有。请勿转载和采集!