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

From: "Douglas McNaught" <doug(at)mcnaught(dot)org>
To: "Karl Denninger" <karl(at)denninger(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Whassup with this? (Create table xxx like yyy fails)
Date: 2008-07-20 04:20:30
Message-ID: 5ded07e00807192120ma07a296y919c0d543844a828@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Jul 19, 2008 at 9:02 PM, Karl Denninger <karl(at)denninger(dot)net> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karl Denninger 2008-07-20 04:38:13 Re: Whassup with this? (Create table xxx like yyy fails)
Previous Message Adam Rich 2008-07-20 04:09:36 Re: Whassup with this? (Create table xxx like yyy fails)