execute immediate的问题 execute immediate不能直接输出变量吗,必须是sql语句吗! ̄ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 dbms_output.put_line(str);输出str字符串; 能!参考以下:execute immediate 'select name,salary from emp where id=:1'using p_idreturning into v_name,v_salary; --动态SQL为查询语句 declare r integer;begin execute immediate 'select count(*) from tab' into r; dbms_output.put_line(r);end; 110个oracle常用函数总结 group by 做报表 出结果就结贴 oracle11g 奇怪问题 oralce 查出所有关联表 oracle 设置用户问题 ORACLE11G 201 RAC 日志切换很频繁 日志文件没到100M就 关于日期是存储成日期类型,还是字符串类型的问题 ORA-01002: fetch out of sequence问题 创建的表select找不到 oracle中使用absolute(int)出错 用VB插入大对象BLOB,怎么能加快速度? 动态调用问题! ̄! ̄
输出str字符串;
参考以下:
execute immediate 'select name,salary from emp where id=:1'
using p_id
returning into v_name,v_salary; --动态SQL为查询语句
r integer;
begin
execute immediate 'select count(*) from tab' into r;
dbms_output.put_line(r);
end;