Re: SELECT CAST(123 AS char) -> 1 - Mailing list pgsql-general

From Ken Johanson
Subject Re: SELECT CAST(123 AS char) -> 1
Date
Msg-id 47B27ACE.1060008@kensystem.com
Whole thread Raw
In response to Re: SELECT CAST(123 AS char) -> 1  ("Dean Gibson (DB Administrator)" <postgresql@ultimeth.com>)
List pgsql-general
Dean Gibson (DB Administrator) wrote:

>>
> Then I don't understand.  While I've never used MySQL, the MySQL web
> pages apparently indicate that VARCHAR has been supported since version
> 3.2: http://dev.mysql.com/doc/refman/4.1/en/char.html
>
>

Only in DDL and not the cast function, apparently. Mysql 5.1 says:

select cast(123 AS varchar)
or
select cast(123 AS varchar(10))

You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near 'varchar)'
at line 1.



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Storing images as BYTEA or large objects
Next
From: "bh yuan"
Date:
Subject: Re: character conversion problem about UTF-8-->SHIFT_JIS_2004