질문)
table_1
table_3
table_4
table_5
table_7
table_9
table_10
이런식으로 띄엄띄엄 존재하는 테이블에 for문을 돌면서
query를 할려고하는데 테이블이 존재하면 쿼리를 날리고 그렇지 않으면
continue 하고 이런식으로 table_10까지 query날리는 방법 없나요?
ㅡ.ㅡa
pg_class 라는 dictionary file 로 부터 미리 테이블의 존재를 확인해 보는 수 밖에 없습니다.
select relname from pg_class where relname not like 'pg_%';