X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 61F0330F163 for ; Tue, 17 Jun 2003 15:35:47 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 42608-04 for ; Tue, 17 Jun 2003 12:35:37 -0300 (ADT) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by svr1.postgresql.org (Postfix) with ESMTP id C71EE30F161 for ; Tue, 17 Jun 2003 12:35:36 -0300 (ADT) Received: from klaster.net (tv126.internetdsl.tpnet.pl [80.55.125.126]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id E1E4A2B3E7; Tue, 17 Jun 2003 17:35:33 +0200 (CEST) Message-ID: <3EEF355A.9000503@klaster.net> Date: Tue, 17 Jun 2003 17:35:54 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: Rado Petrik Cc: pgsql-sql@postgresql.org Subject: Re: CREATE table1 FROM table2 References: <1055863245.624.1.camel@caj> In-Reply-To: <1055863245.624.1.camel@caj> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Archive-Number: 200306/187 X-Sequence-Number: 13945 Dnia 2003-06-17 17:20, Użytkownik Rado Petrik napisał: > Hi, > > How I create table1 from other table2 . > > "cp table1 table2" create table2 as select * from table1; It is described in Postgresql documentation SQL Commands -> "create table as" Regards, Tomasz Myrta