一、sql預(yù)處理
? ? 創(chuàng)建? ? PreparedStatement 對(duì)象
? ? ????????connection.prepareStatement();
? ? ? ? ? ? 對(duì)數(shù)據(jù)進(jìn)行增刪改,使用executeUpdate();
? ? ? ? ? ? 對(duì)數(shù)據(jù)進(jìn)行查,使用executeQuery();

二、session回話對(duì)象
? ? 獲取session對(duì)象
? ? ? ? request.getSession();
? ? 將數(shù)據(jù)放入sessionScope
? ? ? ? session.setAttribute("info","info");? ? ? ? ? ?

? ??????
? ??????