Em 22/07/14, Matheus Saraiva<matheus.sara...@gmail.com> escreveu: > Em 22-07-2014 17:18, Guimarães Faria Corcete DUTRA, Leandro escreveu: >> 2014-07-22 16:01 GMT-03:00 Glauco Torres <torres.gla...@gmail.com>: >>> bool é o alias de boolean >> Em português, o apelido ou sinônimo. >> >> > > Achei que fosse algo como: > > bool 0 ou 1 > boolean TRUE ou FALSE > > Para um objeto do tipo bool posso passar 0 e 1 ? >
Do manual: "Boolean Data Type Valid literal values for the "true" state are: TRUE 't' 'true' 'y' 'yes' 'on' '1' For the "false" state, the following values can be used: FALSE 'f' 'false' 'n' 'no' 'off' '0' Leading or trailing whitespace is ignored, and case does not matter. The key words TRUE and FALSE are the preferred (SQL-compliant) usage." http://www.postgresql.org/docs/current/interactive/datatype-boolean.html Osvaldo _______________________________________________ pgbr-geral mailing list pgbr-geral@listas.postgresql.org.br https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral