DBLINK远程从其他实例(库)中获取到值后,给当前过程变量赋值

由于dblink_name 是动态获取的所以不能使用

select xxx into xx from table 的写法

改用:

execute immediate 'select to_char(count(1)) from sys_employee@"'||dblink_name||'"' into val_num;

猜你喜欢

转载自vortexchoo.iteye.com/blog/2109517
今日推荐