Re: chr(3) and 3::text
От | gmail Vladimir Koković |
---|---|
Тема | Re: chr(3) and 3::text |
Дата | |
Msg-id | 473c9cab-3d3c-7bb0-bb34-51ea81f689ff@gmail.com обсуждение исходный текст |
Ответ на | Re: chr(3) and 3::text ("David G. Johnston" <david.g.johnston@gmail.com>) |
Ответы |
Re: chr(3) and 3::text
|
Список | pgsql-novice |
On 28.3.20. 16:25, David G. Johnston wrote:
The convention here is to bottom or inline post, trimming unnecessary content.Its that way because :: is defined to make it that way.3 has a type of integer'3' has a type of text::<type> is the PostgreSQL type casting operator that casts its left to to <type> (see the documentation I linked to)So:integer::text == textcast(integer as text) == textis the SQL Standard equivalent expressionDavid J.
integer::text == text, but which character 0x03 or 0x33 ?
Text should contain characters.
Characters is from character set.
Character 0x03 is valid in ASCII and UTF-8 character sets.
В списке pgsql-novice по дате отправления: