[quote=引用 8 楼 yaiger 的回复:] 到SQLPLUS下去运行看看
到SQLPLUS下去运行看看
可以查 create or replace procedure test1212 is l_cot number; begin select count(1) into l_cot from sys.dba_tables t where t.table_name = 'AAAAA'; dbms_output.put_line(l_cot); end test1212; 有可能是存储过程所在用户缺少这个权限。
create or replace procedure test1212 is l_cot number; begin select count(1) into l_cot from sys.dba_tables t where t.table_name = 'AAAAA'; dbms_output.put_line(l_cot); end test1212;
没有授权,需要授权可以查询dba_tables
select * from sys.dba_tables t where t.owner = 'A';
17,086
社区成员
55,238
社区内容
加载中
试试用AI创作助手写篇文章吧