?? deldata.java
字號:
package lgcsgwxt.means;
/**
* <p>Title: 魯廣超市進(jìn)銷存系統(tǒng)</p>
*
* <p>Description: 北大青鳥魯廣校區(qū)S1畢業(yè)設(shè)計</p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: ST-117班</p>
*
* @author ST-117班第二小組
* @version 1.0
*/
import java.sql.*;
import lgcsgwxt.DBAccess;
public class DelData {
public DelData() {
}
private static final String delData1 =
"delete from UserManage where cardId=?";
public static int delCard(String cardId) {
int i = 0;
Connection conn = null;
PreparedStatement pmst = null;
ResultSet rs = null;
conn = DBAccess.getConnection();
try {
pmst = conn.prepareStatement(delData1);
pmst.setString(1, cardId);
i = pmst.executeUpdate();
} catch (SQLException ex) {
ex.printStackTrace();
} finally {
try {
if (pmst != null) {
pmst.close();
}
if (conn != null) {
conn.close();
}
} catch (Exception ex1) {
ex1.printStackTrace();
}
}
return i;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -