X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BBEC752819 for ; Fri, 27 May 2005 12:48:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19754-03 for ; Fri, 27 May 2005 15:48:42 +0000 (GMT) Received: from authenticity.encs.concordia.ca (authenticity-96.encs.concordia.ca [132.205.96.93]) by svr1.postgresql.org (Postfix) with ESMTP id 2444152809 for ; Fri, 27 May 2005 12:48:41 -0300 (ADT) Received: from [132.205.44.35] (IDENT:emilu@curacao.cs.concordia.ca [132.205.44.35]) by authenticity.encs.concordia.ca (8.12.11/8.12.11) with ESMTP id j4RFmdro003836 for ; Fri, 27 May 2005 11:48:39 -0400 Message-ID: <42974157.201@cs.concordia.ca> Date: Fri, 27 May 2005 11:48:39 -0400 From: Ying Lu User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: SQL command Error: "create table ... Like parentTable including defaults" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.43 on authenticity.encs.concordia.ca at 2005/05/27 11:48:39 EDT X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.018 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/230 X-Sequence-Number: 21543 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