Bu işlevi yaptım, ancak çalıştırdığımda bir hata döndürdü!Satır türünü pl/sql içindeki bir tablodan döndürmek nasıl kullanılır?
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;
/
Nasıl çalıştırıyorsunuz? Hata nedir? –
Get_Accounts (account_id) dosyasını yürütün; ve bu hata PLS-00221'dir: 'GET_ACCOUNTS' bir yordam veya tanımlanmamıştır – Sara
SQL Server veya Oracle kullanıyor musunuz. Oracle Pl \ SQL ve SQL Server T-SQL –