2

Is there a system table or view in Netezza that shows the number of records for each table?

mustaccio
  • 28,207
  • 24
  • 60
  • 76
user2462699
  • 121
  • 1
  • 1
  • 2

2 Answers2

2

How about:

SELECT TABLENAME,
       OBJTYPE,
       OWNER,
       CREATEDATE,
       USED_BYTES,
       USED_BYTES/1073741824 as USED_GB, 
       RELTUPLES as "ROWS"
 FROM _V_TABLE_ONLY_STORAGE_STAT
 WHERE OBJCLASS = 4905 OR OBJCLASS = 4911
 ORDER BY TABLENAME;
ypercubeᵀᴹ
  • 99,450
  • 13
  • 217
  • 306
0

Please try this view for table "_v_table". and for view this "_v_view"

good luck

user78979
  • 19
  • 1