我写了以下程序
create or replace procedure sp_abc_profile
(
f_symbol_in abc.colname%TYPE
)
is profile abc%rowtype;
is profile2 abc2%rowtype;
begin
SELECT fname, lname,mname,age
INTO profile
FROM abc
WHERE f_symbol = f_symbol_in;
SELECT initiaiinvestment AS minInitialInvestment, pr as qt, class1 as clss
into profile2
FROM
abc2
WHERE f_symbol = f_symbol_in;
end;
执行上述操作后,我收到如下错误消息:
错误 (7,3): PL/SQL: SQL 语句被忽略
错误 (21,5): PL/SQL:ORA-00913: 值太多
我不想选择两个表中的所有行。
如何在一个过程中编写多个 select 语句,以便过程中的每个 select 语句都返回一个结果集。