Re: Newbie question about casting literals - oracle/postgres

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Newbie question about casting literals - oracle/postgres
Дата
Msg-id 20041027180943.GD5394@dcc.uchile.cl
обсуждение исходный текст
Ответ на Newbie question about casting literals - oracle/postgres  ("Naeem Bari" <naeem.bari@agilissystems.com>)
Список pgsql-general
On Tue, Oct 26, 2004 at 08:24:56PM -0500, Naeem Bari wrote:

> The only way this works in postgres is by casting 'GREEN' to text using
> 'GREEN'::text
>
> The problem is then this does not work with oracle.

So use a standards-conformant cast, like

cast('GREEN' as text)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Those who use electric razors are infidels destined to burn in hell while
we drink from rivers of beer, download free vids and mingle with naked
well shaved babes." (http://slashdot.org/comments.pl?sid=44793&cid=4647152)


В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Array values and foreign keys
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Reasoning behind process instead of thread based