Definição
Documenta tabelas e colunas no próprio catálogo do banco.
COMMENT ON: Oracle, PostgreSQL, Snowflake, Databricks. BigQuery: OPTIONS(description = '...'). SQL Server: sp_addextendedproperty.
Exemplos
1. Tabela
COMMENT ON TABLE fact_sales IS 'Daily sales by store and product';
2. Coluna
COMMENT ON COLUMN fact_sales.amount IS 'Net amount in euros, excluding taxes';
3. BigQuery
ALTER TABLE data.fact_sales SET OPTIONS (description = 'Daily sales by store and product');