الانتقال إلى المحتوى
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.

dynamic sql

Featured Replies

بتاريخ:

essalam this is my first participation in this famous web-sit ,
i'd like write with arabic language but my system doesn't recognized it
well, i want describe this method
forexample: select count(*) from emp
result only filed of this table 'EMP'
execute this line for some tables,
so, you need to create procedure or function for execute them,
but there is another method, here it is..


DECLARE
CURSOR cur_tab ( v_param1 varchar2 ) IS
SELECT table_name,column_name
FROM user_tab_columns
WHERE table_name IN (SELECT table_name FROM tabs)
AND column_name LIKE v_param1||'%' ;
SQL_ORDER VARCHAR2(400);
vl_param1 VARCHAR2(50):=('&1');
vl_param2 VARCHAR2(50):=('&2');
vl_count NUMBER;
BEGIN
OPEN cur_tab( v_param1 => vl_param1);
LOOP
FETCH cur_tab INTO vl_table,vl_column;
EXIT WHEN cur_tab%notfound;
SQL_ORDER := ' SELECT COUNT(*) FROM ' || vl_table || ' WHERE '||vl_column||'= '||''''||vl_param2||'''';
execute IMMEDIATE vl_ordre_sql INTO vl_count ;
dbms_output.put_line (vl_count);
END LOOP;
CLOSE cur_tab;
END
--------------------------------------------------------
this my e_mail
[email protected]
i'm here i can help you





;

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

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

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

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

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

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.