低手勿进
首先我没有藐视低手的意思,因为本人也是个低手,只希望此标题能引起更多人的人来帮我,谢谢大家了!
一个简单的学生信息管理系统,纯JDK编辑的,(数据库连接SQL2000)为什么删除和添加功能可以用,查询和修改功能用不了,总是异常的信息?大家帮我改改啊
//查找功能的实现(表是Coolboy)
if(e.getSource()==subMenu2[0]||e.getSource()==toolBarButton[0])
{
String idid = JOptionPane.showInputDialog( "请输入要查找的学生学号 ");
if(idid.trim()!= " ")
{
String strSQL = "select * from Coolboy where id = ' " + idid + " ' ";
try
{
// rs = st.executeQuery( "select * from Coolboy where id = '2006010123 ' ");
rs = st.executeQuery(strSQL);
int count = 0;
while(rs.next())
{
id = rs.getString( "id ");
name = rs.getString( "name ");
department = rs.getString( "department ");
sex = rs.getString( "sex ");
birthday = rs.getString( "birthday ");