aiaiDBA

加微信获取免费职业规划+学习资料,了解年薪50万的DBA是如何练成的

13718043309

010-86462881

PLS-00357: Table,View Or Sequence reference 'string' not allowed in this context

PLS-00357: Table,View Or Sequence reference 'string' not allowed in this context
Cause: A reference to database table, view, or sequence was found in an inappropriate context. Such references can appear only in SQL statements or (excluding sequences) in %TYPE and %ROWTYPE declarations. Some valid examples follow: SELECT ename, emp.deptno, dname INTO my_ename, my_deptno, my_dept .FROM emp, dept WHERE emp.deptno = dept.deptno; DECLARE last_name emp.ename%TYPE; dept_rec dept%ROWTYPE;
Action: Remove or relocate the illegal reference.

请先 登录 后评论

1 个回答

小智
PLS-00357:表,视图或序列引用“ string ”在此上下文中不允许,
.原因:在不适当的上下文中找到了对数据库表,视图或序列的引用。此类引用只能出现在%TYPE和%ROWTYPE声明中的SQL语句或(不包括序列)中。一些有效的例子如下:SELECT ename,emp.deptno,dname INTO my_ename,my_deptno,my_dept .FROM emp,dept WHERE emp.deptno = dept.deptno; DECLARE last_name emp.ename%TYPE; dept_rec dept%ROWTYPE;,
.操作:删除或重新定位非法参考。,
.
请先 登录 后评论