Here is the various view used in Netezza to list the database objects
select count(*) from _v_table where objtype='TABLE';
select count(viewname) from _v_view where OBJTYPE='VIEW';
select count(*) from _v_synonym where OBJTYPE='SYNONYM';
select count(FUNCTION) from _v_function;
select count(*) from _V_AGGREGATE;
select count(PROCEDURE) from _v_procedure where OBJTYPE='PROCEDURE';
select count(*) from _v_sequence where OBJTYPE='SEQUENCE';
select count(*) from _v_library ;
select count(*) from _v_table where objtype='TABLE';
select count(viewname) from _v_view where OBJTYPE='VIEW';
select count(*) from _v_synonym where OBJTYPE='SYNONYM';
select count(FUNCTION) from _v_function;
select count(*) from _V_AGGREGATE;
select count(PROCEDURE) from _v_procedure where OBJTYPE='PROCEDURE';
select count(*) from _v_sequence where OBJTYPE='SEQUENCE';
select count(*) from _v_library ;
No comments:
Post a Comment