2008-11-01から1ヶ月間の記事一覧

全テーブルのレコード数取得

メモ書き。 動的SQLじゃないところが工夫されている箇所。 select table_name, to_number( extractvalue( xmltype( dbms_xmlgen.getxml('select count(*) c from '||table_name)) ,'/ROWSET/ROW/C')) count from user_tables;