• Blog
    • Oracle EBS ERP
      • DBA
      • Developer
      • Application
    • Db2 Database
    • MySQL
  • About Me
  • Skills
  • Education
  • Employment
  • Contact

Number of records in table

  • Home
  • Number of records in table

User can find out the number of record in table

SELECT table_name,
       TO_NUMBER(EXTRACTVALUE (
                    xmltype(DBMS_XMLGEN.getxml (
                               'select count(*) c from ' || table_name)),
                    '/ROWSET/ROW/C'))
          COUNT
  FROM user_tables
 WHERE table_name LIKE '&table_name' 
-- table_name like 'GL%'
Tags
count record in table, dba script, Oracle ebs, oracle script
Categories
  • Application
  • Db2 Database
  • DBA
  • Developer
  • MySQL
  • Oracle EBS ERP
o
  • Extract & restore single mysql table from backup of databaseSaturday - September 04, 2021
© 2019 KS is proudly powered by Kapil Savaliya.