由于dblink_name 是动态获取的所以不能使用
select xxx into xx from table 的写法
改用:
execute immediate 'select to_char(count(1)) from sys_employee@"'||dblink_name||'"' into val_num;
由于dblink_name 是动态获取的所以不能使用
select xxx into xx from table 的写法
改用:
execute immediate 'select to_char(count(1)) from sys_employee@"'||dblink_name||'"' into val_num;