create table if not exists xx AS select ...

Поиск
Список
Период
Сортировка
От Daniel Caldeweyher
Тема create table if not exists xx AS select ...
Дата
Msg-id CAN3G7dYkzRtWT_u2NO4B4LC6WUBtRQ-nPxtrR0PcLLWr+uqJcw@mail.gmail.com
обсуждение исходный текст
Ответы Re: create table if not exists xx AS select ...
Список pgsql-general
Hi All,

I am not entirely sure if this is a bug (fails on 9.3 and 9.4) or working as intended:

create table if not exists test (
foo boolean
);

create table if not exists test2 as 
select * from test where 1=0;
/*
ERROR:  syntax error at or near "as"
LINE 1: create table if not exists test2 as 
*/

create table test2 as 
select * from test where 1=0;

Thanks

Daniel

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

Предыдущее
От: Haribabu Kommi
Дата:
Сообщение: Re: Unicode license compatibility with PostgreSQL license
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: create table if not exists xx AS select ...