📄 bulletin_amend.java
字号:
package bull;
import java.sql.*;
public class bulletin_amend
{
public String bulletin_title;
public String bulletin_context;
public String bulletin_time;
public String old_title;
public Connection con;
public boolean amend_exe() throws Exception {
try{
Statement statement=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="update bulletin_info set bulletin_title='"+bulletin_title+"',bulletin_context='"+bulletin_context+"',bulletin_time='"+bulletin_time+"' where bulletin_title='"+old_title+"'";
statement.executeUpdate(sql);
return true;
}catch(SQLException ee)
{
return false;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -