请问下面的pl/sql dev中的提示是什么意思?(在线等待)

littleM 2003-12-11 01:43:17
下面是使用pl/sql dev的reports->pl sql->Compilation errors生成的信息:

Compilation errors:

Type PROCEDURE
Owner SA
Name GETPUBLICINFORS
Line Error text
101 PLS-00103: 出现符号 "SELECT"在需要下列之一时:
(-+modnotnullothers
<an identifier><a double-quoted delimited-identifier>
<a bind variable>avgcountcurrentexistsmaxminpriorsqlstddev
sumvarianceexecuteforalltimetimestampintervaldate
<a string literal with character set specification>
<a number><a single-quoted SQL string>

103 PLS-00103: 出现符号 "TB_NAME"在需要下列之一时:
;returnreturningandor
符号 "return" 被替换为 "TB_NAME" 后继续。

126 PLS-00103: 出现符号 "FROM"在需要下列之一时:
,intobulk

...全文
104 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
littleM 2003-12-12
  • 打赏
  • 举报
回复
问题已经解决,我的语句结构如下
declare mytemp int;
begin
mytemp:=1;
select a.ff1,(select f2 from table2 b where b.f1=mytemp) from table1 a;
end;
原来在选择过程中(select f2 from table2 b where b.f1=mytemp)不允许,我换成了下面的代码就好用了
declare mytemp int;
declare myret int;
begin
mytemp:=1;
select f2 into myret from table2 b where b.f1=mytemp
select a.ff1,myret from table1 a;
end;


原因无法准确地说出来
chanet 2003-12-11
  • 打赏
  • 举报
回复
代码有错.

请认真检查.
LGQDUCKY 2003-12-11
  • 打赏
  • 举报
回复
提示SQL语句出错?你的代码呢?

17,086

社区成员

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

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