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

مساعدة : مطلوب عمل query لمعرفة اسم الجدول وبجانبه عدد الصفوف التي بداخله

Featured Replies

بتاريخ:

السلام عليكم

مطلوب مني عمل query لمعرفة اسم الجدول وبجانبه عدد الصفوف التي بداخله
وجزاكم الله خير

بتاريخ:

select table_name,NUM_ROWS from user_tables

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

جزاك الله كل خيرا يأباشمهندس

ياريت أفكار تانية يإخواني الاعزاء اصل مطلوب مني كذا طريقة

وشكرا مرة اخرى باشمهندس محمد

بتاريخ:

أخي الكريم

يمكنك باستخدام
DBA_TAB_COL_STATISTICS,DBA_TAB_COLUMNS,DBA_TAB_COLS, DBA_COL_COMMENTS

select column_name,data_type from cols where Table_name='TEST_TABLE'

COLUMN_NAME DATA_TYPE
------------------------------ --------------------
A NUMBER
B VARCHAR2
C CLOB


-------
Select COLUMN_NAME from user_tab_columns where table_name='EMP'

select column_name from all_tab_columns where table_name =upper('tablename');

--------
SELECT t.TypeOwner TypeOwner
FROM metaTable tab, metaType t
WHERE tab.TypeName = t.TypeName"


--------
لذلك

ALL_TABLES - list of all tables in the current database that are accessible to the current user
ALL_TAB_COLUMNS - list of all columns in the database that are accessible to the current user
ALL_ARGUMENTS - lists the arguments of functions and procedures that are accessible to the current user
ALL_ERRORS - lists descriptions of errors on all stored objects (views, procedures, functions, packages, and package bodies) that are accessible to the current user
ALL_OBJECT_SIZE - included for backward compatibility with Oracle version 5
ALL_PROCEDURES - (from Oracle 9 onwards) lists all functions and procedures (along with associated properties) that are accessible to the current user
ALL_SOURCE - describes the text (i.e. PL/SQL) source of the stored objects accessible to the current user


ولعد الصفوف داخل أعمدتها

COLUMN DUMMY NOPRINT
 COMPUTE SUM OF NUM_ROWS ON DUMMY
 BREAK ON DUMMY
 SELECT
    NULL DUMMY,
    T.TABLE_NAME,
    C.COLUMN_NAME,
    T.NUM_ROWS
 FROM
    ALL_TABLES T,
    ALL_TAB_COLUMNS C
 WHERE
    T.TABLE_NAME = C.TABLE_NAME
    AND C.COLUMN_NAME LIKE '%PATTERN%'
 ORDER BY T.TABLE_NAME;




تحياتي لك

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

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

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

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

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

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.