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; 还是其它的 谢谢
那个":"是告诉你no_str是变量,在程序里你可以 sql="select * from student where no in "+no_str;
不过还是有问题,程序报错:
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;
还是其它的 谢谢
sql="select * from student where no in "+no_str;