daniel lopes escreveu:
> ola pessoal
>
> como posso ter a informação do tamanho do campo filler ?
>
> tenho a seguinte estrutura de testes
>
> CREATE TABLE accounts
> (
> aid integer NOT NULL,
> bid integer,
> abalance integer,
> filler character(84),
> CONSTRAINT accounts_pkey PRIMARY KEY (aid)
> )
>
>
Caro Daniel,
Vc pode utilizar diretamente o "Information Schema" [1] com o seguinte SQL:
select *
from information_schema.columns
where table_schema = 'public'
and table_name = 'accounts'
and column_name = 'filler';
[1]http://www.postgresql.org/docs/current/static/information-schema.html
Cordialmente,
--
Fabrízio de Royes Mello
>> Blog sobre PostgreSQL: http://fabriziomello.wordpress.com
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral