2009/3/30 Alisson Viegas <[email protected]>:
> Pessoal, por que a consulta abaixo está retornando um tipo text?
> select placa ||' - '|| modelo::varchar(50) as veiculo from fro.vei
>



De acordo com o manual a operação:
string || string
retorna um text.
http://www.postgresql.org/docs/current/interactive/functions-string.html

Se desejar algum outro tipo utilize cast explícito, se for possível.
http://www.postgresql.org/docs/current/interactive/sql-expressions.html#SQL-SYNTAX-TYPE-CASTS

Osvaldo
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a