?? dialog_enroll_sql.java
字號(hào):
package lgcsgwxt.means;
import lgcsgwxt.DBAccess;
import java.sql.*;
/**
* <p>Title: 魯廣超市進(jìn)銷存系統(tǒng)</p>
*
* <p>Description: 北大青鳥(niǎo)魯廣校區(qū)S1畢業(yè)設(shè)計(jì)</p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: ST-117班</p>
*
* @author ST-117班第二小組
* @version 1.0
*/
public class Dialog_enroll_SQL {
public static final String SQL_SELECT="select * from UserManage where CardId=?";
public boolean IsEmployeeExits(Dialog_enroll_MySQL Dialog_enroll_MySQL)
{
DBAccess helper = new DBAccess();
Connection conn = helper.getConnection();
PreparedStatement ps = null;
ResultSet rs = null;
String sql = "select * from UserManage where CardId=?";
try {
ps = conn.prepareStatement(sql);
ps.setInt(1,Dialog_enroll_MySQL.getCardId());
rs = ps.executeQuery();
if(rs.next())
{
return true;
}
return false;
} catch (SQLException e) {
e.printStackTrace();
}
return false;
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -