ORA-06550: 第 1 行, 第 7 列: PLS-00905: 对象 SYSTEM.GETA 无效 ORA-06550: 第 1 行, 第 7 列: PL/SQL: Statement ignored

javaname69 2005-12-21 10:50:57
ORA-06550: 第 1 行, 第 7 列: PLS-00905: 对象 SYSTEM.GETA 无效 ORA-06550: 第 1 行, 第 7 列: PL/SQL: Statement ignored
...全文
2542 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhpsam109 2005-12-21
  • 打赏
  • 举报
回复
SQL> create table AA
2 (
3 AA DATE default sysdate,
4 BB VARCHAR2(10)
5 )
6 /

Table created

SQL>
SQL> CREATE OR REPLACE PROCEDURE GetA
2 AS
3 BEGIN
4 for cur in(Select * from aa) LOOP
5 dbms_output.put_line(cur.aa);
6 END LOOP;
7 END geta;
8 /

Procedure created


怎么可以出现cur.*呢???
javaname69 2005-12-21
  • 打赏
  • 举报
回复
up
javaname69 2005-12-21
  • 打赏
  • 举报
回复
有这个对象呀!只不对状态老是invalid
create or replace procedure System.GetA
as
begin
for cur in(
Select * from AgentStatusLog;
) loop
dbms_output.put_line(cur.*);
endllo
end;

BEGIN geta; END;

*
ERROR 位于第 1 行:
ORA-06550: 第 1 行, 第 7 列:
PLS-00905: 对象 SYSTEM.GETA 无效
ORA-06550: 第 1 行, 第 7 列:
PL/SQL: Statement ignored
javaname69 2005-12-21
  • 打赏
  • 举报
回复
up
子陌红尘 2005-12-21
  • 打赏
  • 举报
回复
没有 SYSTEM.GETA 这个对象。
javaname69 2005-12-21
  • 打赏
  • 举报
回复
OracleConnection conn=new OracleConnection(GetData.MyConnectionString);
OracleCommand myCmd=new OracleCommand();
myCmd.CommandType=CommandType.StoredProcedure;
myCmd.CommandText="GetA";
myCmd.Connection=conn;
常遇道 2005-12-21
  • 打赏
  • 举报
回复
ORA-06550 line string, column string:string

Cause A PL/SQL compilation error has occurred. The numbers given for line and column are the location in the PL/SQL block where the error occurred.
Action Refer to the following PL/SQL messages for more information about the error.
javaname69 2005-12-21
  • 打赏
  • 举报
回复
up
javaname69 2005-12-21
  • 打赏
  • 举报
回复
ORA-00936: 缺少表达式

17,086

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧