Re: chr(3) and 3::text - Mailing list pgsql-novice

From gmail Vladimir Koković
Subject Re: chr(3) and 3::text
Date
Msg-id e0537ea4-c3ec-179e-3ff6-2a9eaa45fba3@gmail.com
Whole thread Raw
In response to RE: chr(3) and 3::text  (Ken Benson <Ken@infowerks.com>)
Responses RE: chr(3) and 3::text  (Ken Benson <Ken@infowerks.com>)
List pgsql-novice

OK,


And what is 3::text ?


On 28.3.20. 14:35, Ken Benson wrote:

 

From: gmail Vladimir Koković <vladimir.kokovic@gmail.com>
Sent: Saturday, March 28, 2020 6:22 AM
To: pgsql-novice@postgresql.org
Subject: chr(3) and 3::text

 

Hi,

Why is chr(3) is different than 3::text ?

 

[Ken Benson] Chr(3) – means return the character that has the ASCII code of “3” – which is a control character.

https://w3resource.com/PostgreSQL/chr-function.php

Examples:

replace(Filler,chr(3),'') WORKS

replace(Filler3::text,'') WRONG

Vladimir Kokovic, DP senior (69)
Serbia, Belgrade, March 28, 2020



 

 

Ken Benson | ken @ infowerks-dot-com

 

 

pgsql-novice by date:

Previous
From: Ken Benson
Date:
Subject: RE: chr(3) and 3::text
Next
From: Ken Benson
Date:
Subject: RE: chr(3) and 3::text