الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Function With Table Name As AParameter

Featured Replies

بتاريخ:

I Want To Make A D.B Function Take A Table Name As A Parameter
And Return Count(1) From That Table

How Can I Made It

بتاريخ:

الاخ الكريم

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;
/

بتاريخ:
  • كاتب الموضوع

الاخ 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 )

فهل من حل

ومرة أخري جزاك الله خير

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.