Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クエリを使用してデータベースからすべてのテーブルを選択しています
select table_name from all_tables where owner='XYZ' order by table_name
ただし、上記のクエリはマテリアライズド ビューも返します。マテリアライズドビューではなくテーブルのみを取得するにはどうすればよいですか
マテリアライズド ビューとそのログ テーブル (存在する場合) を無視できます。
select * from all_tables t where owner = user and (owner, table_name) not in (select owner, mview_name from all_mviews l union all select log_owner, log_table from all_mview_logs)