java中使用SQL的效率分析例子(一)

2014-11-24 07:34:32 · 作者: · 浏览: 5

前年给地图技术审查中心做了一个培训的报名系统,功能需求比较简单,由于当时刚开始摸索java就只能照葫芦画瓢的使用JDBC写的程序。这是中百信公司的遗留项目,我接手过来的,仿照以前的代码写得。

出现问题的代码:

[html]







查看培训(会议)报名信息


'"/>


style="width: 100%; FONT-SIZE: 18px; word-break: break-all"
cellspacing="1" cellpadding="5" bgcolor=#455ca2>

















<%
Collection registerId = conferenceRegisterAssignOp.getRegisterIdByConferenceId(Integer.parseInt(request.getParameter("cid")));
Iterator it = registerId.iterator();
int index = 1;
while (it.hasNext()) {
Integer integer = (Integer)it.next();
style="font-size: 14px; FONT-WEIGHT: bold">
操作
style="font-size: 14px; FONT-WEIGHT: bold">
序号
style="font-size: 14px; FONT-WEIGHT: bold">
姓名
style="font-size: 14px; FONT-WEIGHT: bold">
性别
style="font-size: 14px; FONT-WEIGHT: bold">
民族
style="font-size: 14px; FONT-WEIGHT: bold">
身份证号
style="font-size: 14px; FONT-WEIGHT: bold">
工作单位
style="font-size: 14px; FONT-WEIGHT: bold">
职务(职称)
style="font-size: 14px; FONT-WEIGHT: bold">
手机号码
style="font-size: 14px; FONT-WEIGHT: bold">
乘坐何种 交通工具(班次)
style="font-size: 14px; FONT-WEIGHT: bold">
到达时间
style="font-size: 14px; FONT-WEIGHT: bold">
注册时间
style="font-size: 14px; FONT-WEIGHT: bold">
ip地址 www.2cto.com