asd13 بتاريخ: 19 أكتوبر 2010 تقديم بلاغ مشاركة بتاريخ: 19 أكتوبر 2010 السلام عليكممطلوب مني عمل query لمعرفة اسم الجدول وبجانبه عدد الصفوف التي بداخلهوجزاكم الله خير اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
mw_wageeh بتاريخ: 19 أكتوبر 2010 تقديم بلاغ مشاركة بتاريخ: 19 أكتوبر 2010 select table_name,NUM_ROWS from user_tables اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
asd13 بتاريخ: 19 أكتوبر 2010 كاتب الموضوع تقديم بلاغ مشاركة بتاريخ: 19 أكتوبر 2010 جزاك الله كل خيرا يأباشمهندس ياريت أفكار تانية يإخواني الاعزاء اصل مطلوب مني كذا طريقةوشكرا مرة اخرى باشمهندس محمد اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
mageed_ahmed بتاريخ: 19 أكتوبر 2010 تقديم بلاغ مشاركة بتاريخ: 19 أكتوبر 2010 أخي الكريم يمكنك باستخدام DBA_TAB_COL_STATISTICS,DBA_TAB_COLUMNS,DBA_TAB_COLS, DBA_COL_COMMENTSselect column_name,data_type from cols where Table_name='TEST_TABLE'COLUMN_NAME DATA_TYPE------------------------------ --------------------A NUMBERB VARCHAR2C 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 TypeOwnerFROM metaTable tab, metaType tWHERE 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; تحياتي لك اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Recommended Posts
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.