一、sql预处理
创建 PreparedStatement 对象
connection.prepareStatement();
对数据进行增删改,使用executeUpdate();
对数据进行查,使用executeQuery();
二、session回话对象
获取session对象
request.getSession();
将数据放入sessionScope
session.setAttribute("info","info");
创建 PreparedStatement 对象
connection.prepareStatement();
对数据进行增删改,使用executeUpdate();
对数据进行查,使用executeQuery();
request.getSession();