Compilation Error:function 'NAME_IN' may not be used in SQL
2013-05-24 15:45
423 查看
编译pll文件,编译报错
PL/SQL ERROR 231 at line 1009, column 45
function 'NAME_IN' may not be used in SQL
PL/SQL ERROR 0 at line 1006, column 4
SQL Statement ignored
Failed to generate library.
FRM-30312: Failed to compile the library.
原因:pld/pll文件中增加,新增代码
SQL语句中不能直接使用NAME_IN,需要先赋给一个变量之后,再在SQL中引用这个变量。例如可以把上边的代码修改成:
PL/SQL ERROR 231 at line 1009, column 45
function 'NAME_IN' may not be used in SQL
PL/SQL ERROR 0 at line 1006, column 4
SQL Statement ignored
Failed to generate library.
FRM-30312: Failed to compile the library.
原因:pld/pll文件中增加,新增代码
select ALLOCATE_LOT_FLAG into L_ALLOCATE_LOT_FLAG from mtl_parameters where organization_id = TO_NUMBER(NAME_IN('parameter.org_id')) and rownum = 1;
SQL语句中不能直接使用NAME_IN,需要先赋给一个变量之后,再在SQL中引用这个变量。例如可以把上边的代码修改成:
orgid1 := TO_NUMBER(NAME_IN('parameter.org_id')); select ALLOCATE_LOT_FLAG into L_ALLOCATE_LOT_FLAG from mtl_parameters where organization_id = orgid1 and rownum = 1;
相关文章推荐
- PLS-00231 function name may not be used in SQL
- PLS-00231错误:function name may not be used in SQL
- gcc warning: warning: 'tick' may be used uninitialized in this function
- warning: the 'gets' function is dangerous and should not be used.的解决办法
- [PLSQL]Two small function utilities that could be used in dynamic SQL (sqlchar and correct_sql_name)
- jqGrid ---Grid can not be used in this ('quirks...
- IP address '172.172.200.88' could not be resolved: Temporary failure in name resolution
- 如何解决Reachability中的Declaration of 'struct sockaddr_in' will not be visible outside of this function
- warning: the ‘gets' function is dangerous and should not be used
- The type or namespace name 'AjaxControlToolkit' could not be found in the global namespace
- jqGrid不支持IE8的解决办法(Grid can not be used in this ('quirks') mode)
- Linux下开发warning:"the `gets' function is dangerous and should not be used"
- Declaration of 'struct sockaddr_in' will not be visible outside of this function警告的处理
- jqGrid不支持IE8的解决办法(Grid can not be used in this ('quirks') mode)
- [MySQL]IP address '192.168.31.110' could not be resolved: Temporary failure in name resolution
- warning: the 'gets' function is dangerous and should not be used.的解决办法
- Declaration of 'struct sockaddr_in' will not be visible outside of this function警告的处理
- mysql -- error code [1442]; Can't update table 'table_name' in stored function/trigger because it is already used by statement w
- warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead.
- warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To