晕!刚才白写了,重来一遍:把学号数组组装成一个字符串,如no_str="'01','02','03',..."然后在sql里用in,如:
select * from student where no in :no_str

解决方案 »

  1.   

    njhart2003() 谢谢
    不过还是有问题,程序报错:
    One or more errors occurred during processing of command. 
    ORA-00933: SQL command not properly ended 
    sql语句格式不对啊
    string sql="select * from student where no in :no_str";
    还是sql="select * from student where no in :"+no_str;
    还是其它的 谢谢
      

  2.   

    那个":"是告诉你no_str是变量,在程序里你可以
    sql="select * from student where no in "+no_str;