Awesome Hacks!

プログラミング初心者なので地道に勉強していきます。分からない人の立場から整理していきます。

postgresl

postgres_テーブルのカラム名取得SQL

SELECT column_name FROM information_schema.columns WHERE table_name = 'テーブル名' ORDER BY ordinal_position

postgresql_テーブル一覧取得SQL

select * from pg_tables where tablename not like 'pg_%' and schemaname not like 'infomation_%';