Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PLS-00428

3305994Sep 6 2016 — edited Sep 6 2016

Hello!

I declare a variable.

DECLARE cSuch CONSTANT VARCHAR2(30) := 'Aurich';

BEGIN 

  SELECT * FROM all_tab_columns WHERE data_type like '%VARCHAR2' and owner = 'WODIS';

END;

And although I did not use it, I get the following error message:

Fehler beim Start in Zeile : 6 in Befehl -

DECLARE cSuch CONSTANT VARCHAR2(30) := 'Aurich';

BEGIN 

  SELECT * FROM all_tab_columns WHERE data_type like '%VARCHAR2' and owner = 'WODIS';

END;

Fehlerbericht -

ORA-06550: Zeile 3, Spalte 3:

PLS-00428: In dieser SELECT-Anweisung wird eine INTO-Klausel erwartet

06550. 00000 -  "line %s, column %s:\n%s"

*Cause:    Usually a PL/SQL compilation error.

What could be wrong?

This post has been answered by thatJeffSmith-Oracle on Sep 6 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 4 2016
Added on Sep 6 2016
2 comments
583 views