最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
JSP实现树型组织架构(5)--删除部门页面orgDelete.jsp
时间:2022-07-02 17:53:27 编辑:袖梨 来源:一聚教程网
//orgDelete. 删除部门页面,由orgManage.jsp 而来
request.setCharacterEncoding("big5");
String depName=request.getParameter("name");
//out.println(depName+"
");
String message=null;
boolean autoCommit=conn.getAutoCommit();
String query1=" select total "+
" from ngb_org "+
" where name='"+depName+"' ";
String query2=" select * "+
" from ngb_org "+
" where total like ? ";
String delete=" delete from ngb_org "+
" where total like ? ";
String delete1=" delete from ngb_org "+
" where name=? ";
String temp1=null;
String temp1a=null;
String temp1aa=null;
String temp1b=null;
try{
conn.setAutoCommit(false);
PreparedStatement ps=conn.prepareStatement(query1);
ResultSet rs1=ps.executeQuery();
while(rs1.next())
{temp1=rs1.getString("total");}
//out.println(temp1);
temp1a=temp1.substring(0,1);
temp1aa=temp1.substring(0,3);
temp1b=temp1.substring(3,6);
//out.println(temp1b);
/*
request.setCharacterEncoding("big5");
String depName=request.getParameter("name");
//out.println(depName+"
");
String message=null;
boolean autoCommit=conn.getAutoCommit();
String query1=" select total "+
" from ngb_org "+
" where name='"+depName+"' ";
String query2=" select * "+
" from ngb_org "+
" where total like ? ";
String delete=" delete from ngb_org "+
" where total like ? ";
String delete1=" delete from ngb_org "+
" where name=? ";
String temp1=null;
String temp1a=null;
String temp1aa=null;
String temp1b=null;
try{
conn.setAutoCommit(false);
PreparedStatement ps=conn.prepareStatement(query1);
ResultSet rs1=ps.executeQuery();
while(rs1.next())
{temp1=rs1.getString("total");}
//out.println(temp1);
temp1a=temp1.substring(0,1);
temp1aa=temp1.substring(0,3);
temp1b=temp1.substring(3,6);
//out.println(temp1b);
/*
相关文章
- 原神鸣草在哪 鸣草采集路线介绍 09-15
- 空洞骑士丝之歌腐汁泽怎么去 腐汁泽进入方法介绍 09-15
- 空洞骑士丝之歌念珠怎么刷 念珠高效刷取方法 09-15
- 空洞骑士丝之歌怎么快速刷钱 快速刷钱方法汇总 09-15
- qq网页版在线登录入口 在线qq网页版登录网址 09-15
- 原神月落银位置在哪 月落银采集路线分享 09-15