📄 handle1.java
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -