Search Postgresql Archives

Re: converting text to bytea

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Is there a reason why i'm getting text when i run the below

select convert_to('some_text', 'UTF8')    i get back 'some_text' 

regards

On Mon, Feb 22, 2021 at 9:09 AM Pavel Stehule <pavel.stehule@xxxxxxxxx> wrote:
Hi

po 22. 2. 2021 v 7:37 odesílatel Yambu <hyambu@xxxxxxxxx> napsal:
Hello

This sounds simple, but im not getting the results when i cast text to bytea like this first_name::bytea . Is there another way to do this?

You should to use convert_to function


Regards

Pavel


regards

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux