Azzamm51 بتاريخ: 13 أكتوبر 2004 تقديم بلاغ مشاركة بتاريخ: 13 أكتوبر 2004 الأخوة الكرام أحب توضيح لمعني كلمة مناداة الدالة وجزاكم الله عنا كل خير اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
abo_husam بتاريخ: 13 أكتوبر 2004 تقديم بلاغ مشاركة بتاريخ: 13 أكتوبر 2004 You can call Function by put the output of the function on a variable which is the same type,as the output of the functionexamplelet's say that we have function called get_name,which return the name of the employee as thiscreate or replace function get_name(p_empno number) return char is v_name varchar2 emp.ename%type;begin select ename into v_name from emp where empno = p_empno; return v_name; exception when no_data_found then return ('*****'); end; -----------and now we are going to call this function first by select statment;select get_name(empno) namefrom emp; ----------and the other way is declare v_name varchar2(60);begin v_name := get_name(12);end; اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Recommended Posts
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.