Есть ли другой способ проверить, равны ли переменные?Когда я использую этот код, у меня не было никакого результата - PullRequest
0 голосов
/ 21 мая 2019

Когда я проверяю, равны ли переменные, у меня нет никакого результата. Когда я запускаю процедуру, есть ли способ проверить значение переменных?

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;
...