بتاريخ: 23 فبراير 200619 سنة comment_60911 I Want To Make A D.B Function Take A Table Name As A Parameter And Return Count(1) From That TableHow Can I Made It تقديم بلاغ
بتاريخ: 23 فبراير 200619 سنة comment_60922 الاخ الكريم CREATE OR REPLACE FUNCTION fnc_Count( Item_no IN VARCHAR2 ) RETURN Number IS -- CURSOR c_count( Item IN VARCHAR2 ) IS select count(item) from items where item_no = item_no; -- t_count NUMBER; BEGIN open c_count(item_no); fetch c_count into t_count; return(t_count); END fnc_Count; / تقديم بلاغ
بتاريخ: 25 فبراير 200619 سنة كاتب الموضوع comment_61044 الاخ Admin05 الف شكر للرد ولكني اريد اسم ال Table هو ال باراميتر input parameter for the function the problem is when make any select like select count(*) from paarameter ;give a compilation erro (table or view does not exist )فهل من حل ومرة أخري جزاك الله خير تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.