sIMple51

身も心も文系エンジニアの徒然。ときどき技術、よくよくガジェット。

2016-09-27から1日間の記事一覧

DBの全テーブルと、いまのリアルなレコード数が知りたい

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 NOT LIKE 'BIN$%' and (iot_type != 'IOT_OVERFLOW' or iot_type is null…