0
私は非常に長いクリーニング手順を使用しています。 これを別のファイルに保存しました。 他のすべてのプロセスは、別のクエリで定義されています。 メインクエリからクリーニングファイルを実行したいとします。 これは可能なのですか?クエリ内でクエリを実行する(PostgresAdmin III)
例: メインクエリファイル
create table a as
select * from b;
--a lot of other stuff--
execute cleaning query here!! -- I want to execute the cleaning query within my main query
-- cleaning query looks as follows (don't want to paste this into main query):
create table a_ as
select *, replace(replace(replace(...(a1
, 'WORD1', '')
, 'WORD2', '')
, 'WORD3', '')
... from a ;
-- end of cleaning query
--again a lot of stuff --