我是菜鸟,我查询一个表中的两个字段分别将值赋给两个变量,为何不行?而当是查询一个字段赋给一个变量就行.declare
A1 varchar2;
A2 varchar2;
begin
select name into A1 from table1 where key = '1';--这里没错select name into A1, code into A2 from table1 where key = '1';--这里出错,请问是什么原因?end;
A1 varchar2;
A2 varchar2;
begin
select name into A1 from table1 where key = '1';--这里没错select name into A1, code into A2 from table1 where key = '1';--这里出错,请问是什么原因?end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货