테이블 postgres 의 세부 정보 표시
postgres=# \d tablename;
테이블 포스트 그레스 설명
postgres=# \d schema.tablename;
자세한 테이블 스키마 postgresql 보기
-- All information
SELECT * FROM information_schema.columns
WHERE table_schema = 'some_schema'
AND TABLE_NAME = 'some_table';
-- Or a more simplified version
SELECT
table_name,
column_name,
data_type
FROM
information_schema.columns
WHERE
table_name = 'some_table';
postgre 설명 테이블
SELECT
table_name,
column_name,
data_type
FROM
information_schema.columns
WHERE
table_name = 'city';