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

بروسيدجر للبحث عن كلمه فى قاعده البيانات

Featured Replies

بتاريخ:

create or replace procedure search_in_data(w_owner varchar2,w_name varchar2) is
w_cnt    number;
w_select varchar2(300);
begin -- this procedure to serch in varchar items in all tables
  -- and output the table name and the column name
  -- you must wright the following order on the sql screen
  -- -------------------
  -- set serveroutput on -- -------------------   
  
  for i in (select table_name,column_name from sys.dba_tab_columns where owner = upper(w_owner) and data_type = 'VARCHAR2'
             order by table_name,column_name) loop
     if length(i.table_name) <= 28 then
        w_select := 'select count(*) from '||w_owner||'.'||i.table_name||
                    ' where '||upper(i.column_name)||' like '||''''||'%'||w_Name||'%'||'''' ;
        execute immediate w_select into w_cnt; if w_cnt > 0 then
           DBMS_OUTPUT.put_line (i.table_name||'-'||i.column_name);
        end if;
     end if;
  end loop;
  ----------------------
  -- [email protected]
  ----------------------
end search_in_data;

/

بتاريخ:

جزاك الله كل الخير عل الكود

  • بعد 1 شهر...
بتاريخ:

THANK YOU
FOR YOUR GREAT EFFORT

post-63593-1214058319_thumb.jpg

تم تعديل بواسطة mohamed fathei

بتاريخ:

أشكرك على المجهود الرائع ، و لكن أين سأضع الكود في الفورم بلدر و لا البروسيدر بلدر

  • بعد 5 شهور...
بتاريخ:

ياريت تحط لنا كود البحث الي بيبحث عن السجلات الي تبدى بنفس الحرف



create or replace procedure search_in_data(w_owner varchar2,w_name varchar2) is
w_cnt    number;
w_select varchar2(300);
begin -- this procedure to serch in varchar items in all tables
  -- and output the table name and the column name
  -- you must wright the following order on the sql screen
  -- -------------------
  -- set serveroutput on -- -------------------   
  
  for i in (select table_name,column_name from sys.dba_tab_columns where owner = upper(w_owner) and data_type = 'VARCHAR2'
             order by table_name,column_name) loop
     if length(i.table_name) <= 28 then
        w_select := 'select count(*) from '||w_owner||'.'||i.table_name||
                    ' where '||upper(i.column_name)||' like '||''''||'%'||w_Name||'%'||'''' ;
        execute immediate w_select into w_cnt; if w_cnt > 0 then
           DBMS_OUTPUT.put_line (i.table_name||'-'||i.column_name);
        end if;
     end if;
  end loop;
  ----------------------
  -- [email protected]
  ----------------------
end search_in_data;

/

بتاريخ:

السلام عليكم ورحمة الله وبركاته

الله يعطيك العافية على هذا Procedure الرائع و أتمنى لك التفيق والنجاح دائما ، لكن لم أجرب الكود ، و أشكرك جزيل الشكر على هذا الجهد الممتاز.

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

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

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

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

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

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.