我写了下面的脚本,我在第 8 行得到 ORA-01722 错误。我该如何解决这个错误?提前致谢。
declare
type array_t is varray(2) of VARCHAR2(20);
array array_t := array_t('5634', '5764');
begin
for i in 1..array.count loop
execute immediate 'select t.musteri_id from tms.isemri t where t.isemri_tarihi = (select max(t.isemri_tarihi) from tms.isemri t where t.hizmet_no = '||
array(i)||') and t.hizmet_no ='|| array(i);
end loop;
end;