当我检查变量是否相等时,我没有任何结果。当我运行该过程时,是否有任何方法可以检查变量的值?
procedure c is
i_n number:=0;
o_n number:=0;
c_t number;
cursor c_values is
SELECT
a.file_type AS file_type,a.input AS a_input,b.input AS b_input,a.output AS a_output,b.output AS b_output,
CASE WHEN a.input = b.input then
i_n+1
WHEN a.output = b.output THEN
o_n+1
End case
FROM
test1 a, test4 b
where a.file_type=b.file_type
;
begin
select count(*) into c_t from test1;
if i_n=c_t and o_n=c_t then
dbms_output.put_line('done');
end if;
end;`
end;