Search Postgresql Archives

Re: Whassup with this? (Create table xxx like yyy fails)

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

 




Douglas McNaught wrote:
On Sat, Jul 19, 2008 at 9:02 PM, Karl Denninger <karl@xxxxxxxxxxxxx> wrote:
  
childrensjustice=# create table petition_bail like petition_white;
ERROR:  syntax error at or near "like"
LINE 1: create table petition_bail like petition_white;
    

It's not super-easy to see from the docs, but I think you need parentheses:

CREATE TABLE petition_bail (LIKE petition_white);

-Doug

  
Aha.

Thank you.

Karl Denninger (karl@xxxxxxxxxxxxx)
http://www.denninger.net


[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