I have a plsql function and I want to call an other function from my function. how can I do this?
FUNCTION ortak_icra_job(prm_dosya_id dosya.id%TYPE,
prm_aciklama icra_hareket.aciklama%TYPE,
prm_kullanici_id kullanici.id%TYPE,
prm_ask_ind_kayit_sayisi OUT NUMBER,
prm_hata_metni OUT VARCHAR2,
prm_hata_kodu OUT hata_mesaji.id%TYPE)
BEGIN
askidan_indir(prm_dosya_id ,
prm_aciklama ,
prm_kullanici_id ,
prm_ask_ind_kayit_sayisi ,
prm_hata_metni ,
prm_hata_kodu )
END;
is this correct way to do this ?
Here is an example how to run function. There are two ways to do that.
Try to add result value:
result := askidan_indir(prm_dosya_id,
prm_aciklama,
prm_kullanici_id,
prm_ask_ind_kayit_sayisi,
prm_hata_metni,
prm_hata_kodu )
You can also use your function in select statement
:
select askidan_indir(prm_dosya_id,
prm_aciklama,
prm_kullanici_id,
prm_ask_ind_kayit_sayisi,
prm_hata_metni,
prm_hata_kodu)
into result
from dual;
Functions must return a value, else you should have an assignment target to the function.
FUNCTION ortak_icra_job(prm_dosya_id dosya.id%TYPE,
prm_aciklama icra_hareket.aciklama%TYPE,
prm_kullanici_id kullanici.id%TYPE,
prm_ask_ind_kayit_sayisi OUT NUMBER,
prm_hata_metni OUT VARCHAR2,
prm_hata_kodu OUT hata_mesaji.id%TYPE)
RETURNS VARCHAR2 IS
v_result varchar2(200);
BEGIN
v_result := askidan_indir(prm_dosya_id ,
prm_aciklama ,
prm_kullanici_id ,
prm_ask_ind_kayit_sayisi ,
prm_hata_metni ,
prm_hata_kodu );
RETURN v_result;
END;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With