connection.preparedStatement(sql);
使用:
Object [] name={參數(shù)一概漱,參數(shù)二硕勿,......}
for(int i=0;i<name.length;i++){
??????????? preparedStatement.setObject(i+1,參數(shù)一);
}
preparedStatement.executeUpdate();——返回值:int類型躁愿,返回執(zhí)行成功受到影響的數(shù)據(jù)條數(shù)德迹,執(zhí)行失敗返回-1雀监;
session
session=request.getSession();
session.setAttribute("name","value");
${name}