catalog

information_schema.columns

Lists accessible column metadata using standardized type descriptions where possible.

Formal Syntax & Structure

sql syntaxsql
SELECT column_name, data_type FROM information_schema.columns WHERE table_schema = 'bm_lab' AND table_name = 'items' ORDER BY ordinal_position;

Working Example

Example Snippetsql
-- Disposable PostgreSQL lab only; see LAB.md.SELECT column_name, data_type FROM information_schema.columns WHERE table_schema = 'bm_lab' AND table_name = 'items' ORDER BY ordinal_position;
SQL Reference