连接连接=null;
语句stmt=null;
字符串成员类型=' '; //登录用户类型
try {
StringBuffer sb=new StringBuffer (;
sb.append (selectmembertypefromm _ b _ brokerwherebrokerid=' logon user ' ' );
系统. out.print (sb;
RS=stmt.execute query (sb.tostring ); //此处报告空指针异常
system.out.print('1111 );
wile(RS.next ) ) }
}
rs.close (;
rs=null;
conn.close (;
conn=null;
}
catch(exceptione ) {
e .打印堆栈跟踪(;
} finally {
try {
if(RS!=空) {
rs.close (;
rs=null;
}
if(STMT!=空) {
}
if(Conn!=空) {
conn.close (;
conn=null;
}
}catch(sqlexceptione ) {
e .打印堆栈跟踪(;
}
}
返回成员类型;