handle1.java
来自「个人办公平台,用JAVA开发的TOMCAT的服务器」· Java 代码 · 共 52 行
JAVA
52 行
/*
* Created on 2006-9-24
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.skyhawk.hellen;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import com.skyhawk.db.ConnectionFactory;
/**
* @author Administrator
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class Handle1 {
public boolean handle(String statu,String title){
Connection con=null;
Statement stm=null;
ResultSet sr=null;
ConnectionFactory conn=new ConnectionFactory();
con=ConnectionFactory.getConnection();
try {
stm=con.createStatement();
} catch (SQLException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
if(statu.equals("delete")){
try {
stm.executeUpdate("delete * from O_message where title");
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return true;
}
public static void main(String[] args) {
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?