这很奇怪。作为选择条件传递到存储过程时,一个参数无法正常工作。它的部分ID为'1228 BK01'。
存储过程
SELECT count(class_id) INTO v_id
from courses_semester
where
course_id
= course_id
and univ_id
= univ_id
and dept_id
= dept_id
and section_id
= section_id
and semester
=semester
and year
= _year;
course_id
univ_id
工作查询
dept_id
当'1228 BK01'作为参数传递给sp时,结果是表中所有记录的计数,这是错误的行为。我在这做错了什么?
旁白:当我输出参数时,它正确传递。