我工作的一個PLSQL腳本,但有一個錯誤 - 我不知道什麼是錯的做;(PLSQL:ORA-00933爲什麼INTO無法正常工作?
林爲這個愚蠢的問題很抱歉,但我真的不知道該解決方案 燦有人幫助我
這是我的代碼:??
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
@Thomas非常感謝你!我錯了。 – Squareoot
[因爲這不是正確的語法](http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/selectinto_statement.htm#CJADDIHJ)。 –