Wie führe ich eine Funktion aus, um den Zeilentyp aus einer Tabelle in pl / sql zurückzugeben?

Ich habe diese Funktion gemacht, aber sie gibt einen Fehler zurück, wenn ich sie ausführe!

create or replace function get_accounts
(Acc_id in Account1.account_id%Type)
return account1%rowtype
as
l_cust_record account1%rowtype;
begin
select * into l_cust_record from account1
where account_id=Acc_id;
return(l_cust_record);
end;
/

Antworten auf die Frage(4)

Ihre Antwort auf die Frage