是不是sql语句的问题
String sql2="select * from treeview where id="+id;
换成
String sql2="select * from treeview where id=" + "'" + id + "'";
String sql2="select * from treeview where id="+id;
换成
String sql2="select * from treeview where id=" + "'" + id + "'";
不是吧,因为它执行了一边了,主要是递归的问题,我不知道怎样来写