Dicionário de Dados

dezembro 7, 2017 em Mysql, PostgreSql, SQL por Sândler

Comandos SQL

SELECT
TABLE_NAME as Tabela,
COLUMN_NAME as Coluna,
DATA_TYPE as Tipo,
CHARACTER_MAXIMUM_LENGTH,
NUMERIC_PRECISION,
NUMERIC_SCALE
FROM INFORMATION_SCHEMA.COLUMNS
WHERE  TABLE_NAME = ‘acl_action’
GROUP BY COLUMN_NAME
ORDER BY  COLUMN_KEY DESC;

Referência: http://sqlfromhell.wordpress.com/category/dicionarios-de-dados/