【发布时间】:2017-05-13 19:38:15
【问题描述】:
我正在编写一个 PLSQL 脚本,但有一个错误 - 我不知道出了什么问题 ;(
我很抱歉这个愚蠢的问题,但我真的不知道解决方案。 有人可以帮帮我吗?
这是我的代码:
DECLARE
tagnow webtags_20161221.editionid%TYPE;
BEGIN
select editionid from webtags w, edition e
into tagnow *the word into is red underlined*
where editionid in (
select editionid from (
select editionid, tag, count(*) from webtags
group by editionid, tag
having count(*) > 1))
and editionid = editionid
order by createdat desc;
DBMS_OUTPUT.put_line (
tagnow);
END;
为什么它不起作用?错误是:
ORA-06550: Line 5, Column 3:
PL/SQL: ORA-00933
ORA-06550: Line 4, Column 3:
PL/SQL: SQL Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
请帮帮我,我是初学者。
【问题讨论】:
-
"SELECT -- INTO -- FROM -- etc.." 是正确的顺序
-
@Thomas 非常感谢!我错了。