Re: How to cast, if type has spaces in the name

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: How to cast, if type has spaces in the name
Дата
Msg-id 20070726075708.M12817@megazone.bigpanda.com
обсуждение исходный текст
Ответ на How to cast, if type has spaces in the name  (Bryce Nesbitt <bryce1@obviously.com>)
Список pgsql-sql
On Thu, 26 Jul 2007, Bryce Nesbitt wrote:

> How do I specify a cast, if the type name has spaces?  foo::integer is
> easy,
> but foo::'timestamp without time zone' is more murky.

foo::timestamp without time zone should work (no quotes). Another
alternative if you don't like the way that looks is to use the SQL cast
syntax, CAST(foo AS timestamp without time zone).


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

Предыдущее
От: Ranieri Mazili
Дата:
Сообщение: Tunning PostgreSQL performance for views on Windows
Следующее
От: Dmitry Ruban
Дата:
Сообщение: unique index on fields with possible null values