Re: table name

Поиск
Список
Период
Сортировка
От Paul Förster
Тема Re: table name
Дата
Msg-id 75D93B48-9BBC-41C9-A1F8-CB1142F0A031@gmail.com
обсуждение исходный текст
Ответ на table name  (Marc Millas <marc.millas@mokadb.com>)
Ответы Re: table name  (Alban Hertroys <haramrae@gmail.com>)
Список pgsql-general
Hi Marc,

> On 11. Jun, 2020, at 20:54, Marc Millas <marc.millas@mokadb.com> wrote:
> sorry if my question is tooo simple :-)

it's not. :-)

> obviously if I ask:
> select * from regions-20180101;
> I get a syntax error.
> if I try select * from $$regions_20180101$$;
> I get another syntax error.
> If I try to rename that table, same thing.
> if I try a cte, same thing.
> 
> What should I do ?

you can just quote its name:

select * from "regions-20180101";

Cheers,
Paul



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

Предыдущее
От: Marc Millas
Дата:
Сообщение: Re: table name
Следующее
От: George Dimopoulos
Дата:
Сообщение: ora2pg error : DBD::Oracle::db prepare failed: ORA-28110