展开全部
查询62616964757a686964616fe4b893e5b19e31333337626137部分代码如下:String strSQL;
strSQL="select * from tb_manager where manager='"+jTextField1.getText().trim()+"'";
rs=db.getResult(strSQL);
try
{
if(rs.first())
{
jTextField1.setText(rs.getString("manager"));
jTextField2.setText(rs.getString("den"));
jTextField3.setText(rs.getString("ID"));
jTextField4.setText(rs.getString("remark"));
jTextField5.setText(rs.getString("sex"));
}
else
{
JOptionPane.showMessageDialog(null,"无此信息");
}
}catch(SQLException e)
{JOptionPane.showMessageDialog(null," 查询信息失败!");}
}