赞
踩
sql的预编译就是说:
对于一个sql语句的执行,首先要进行语法解析,优化,制定执行计划操作,
//写sql
String sql = "select * from student where id=0";
//获取数据库操作对象
Statement statement = connection.createStatement();
//执行sql
statement.executeQuery(sql<
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。