From: Ying Lu <ying_lu@cs.concordia.ca>
To: pgsql-sql@postgresql.org
Subject: SQL command Error: "create table ... Like parentTable including defaults"
Date: Fri, 27 May 2005 11:48:39 -0400
Message-ID: <42974157.201@cs.concordia.ca> (raw)
Greetings,
I have a simple question about SQL command :
create table tableName1 LIKE parentTable INCLUDING defaults ;
I was trying to create table "tableName1" with the same structure as
"parentTable" without any data. I got a syntax error:
'syntax error at or near "like" ... '
I guess there must be something wrong with my sql command, could
somebody help?
Thanks a lot,
Emi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ying_lu@cs.concordia.ca
Subject: Re: SQL command Error: "create table ... Like parentTable including defaults"
In-Reply-To: <42974157.201@cs.concordia.ca>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox