以下の内容はhttps://yohei-a.hatenablog.jp/entry/20220423/1650724558より取得しました。


Redshift で DROP 文を生成する

Redshift で存在するテーブル、ビュー、スキーマDROP 文を生成する

  • テーブル
select 'drop table '||schemaname||'.'||tablename||' cascade;' from pg_tables where schemaname not in ('public', 'information_schema', 'catalog_history') and schemaname not like 'pg_%';
  • ビュー
select 'drop view '||schemaname||'.'||viewname||';' from pg_views where schemaname not in ('public', 'information_schema', 'catalog_history') and schemaname not like 'pg_%';
select 'drop schema '||nspname||';' from pg_catalog.pg_namespace where nspname not in ('public', 'information_schema', 'catalog_history') and nspname not like 'pg_%';



以上の内容はhttps://yohei-a.hatenablog.jp/entry/20220423/1650724558より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14