Search Postgresql Archives

create table if not exists xx AS select ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux