select MATLINEID from QD2_MATLINEMAIN where MATID=in_matid;有问题,字段MATLINEID 或者MATID 可能有拼写错误 还有把 Fetch c_1 into out_line; out_string:=out_string||out_line; exit when c_1%notFound; 顺序换成 Fetch c_1 into out_line; exit when c_1%notFound; out_string:=out_string||out_line; 比较好
还有把
Fetch c_1 into out_line;
out_string:=out_string||out_line;
exit when c_1%notFound;
顺序换成
Fetch c_1 into out_line;
exit when c_1%notFound;
out_string:=out_string||out_line; 比较好