📄 idudata.java
字号:
package cwnu.com.dataiud;
import cwnu.com.dbconnect.*;
import java.sql.*;
public class idudata {
private Connection myconnection=null;
private Statement myst=null;
private conn myconn=null;
public idudata()
{
myconn = new conn();
}
//信息的增加 删除 更新
public boolean iduInfo(String sql)
{
boolean isSuccessful = false;
try
{
myconnection = myconn.getConn();
myst = myconnection.createStatement();
myst.executeUpdate(sql);
isSuccessful =true;
myst.close();
myconnection.close();
}catch (Exception e) {
System.out.println(e);
}
return isSuccessful;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -