You need change query terminator symbol with bottom right button (like combobox); See proof SQLFiddle
Anonymous procedure PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: := ( ; not null range default character
-
29-03-2022 - |
Question
here's the code:
http://sqlfiddle.com/#!4/ee7da/4247
CREATE TABLE supportContacts
(
id int primary key,
type varchar2(20),
details varchar2(40)
)
/
INSERT INTO supportContacts
(id, type, details)
VALUES
(1, 'Email', 'admin@sqlfiddle.com')
/
INSERT INTO supportContacts
(id, type, details)
VALUES
(2, 'Twitter', '@sqlfiddle')
DECLARE
x supportContacts.type%type;
y supportContacs.details%type;
BEGIN
select type,details into x,y from supportContacts where id = 1;
dbms_output.put_line(x);
dbms_output.put_line(y);
END;
/
i wonder why this doesn't work?
La solution 2
Autres conseils
This: y supportContacs.details%type;
Should be: y supportContacts.details%type;
If I make that change, it works for me.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow