这是代码:
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;
/
我想知道为什么这不起作用?