pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume LELARGE <gleu@wanadoo.fr>
To: pgsql-sql@postgresql.org
Subject: Re: CREATE table1 FROM table2
Date: Tue, 17 Jun 2003 19:10:56 +0000
Message-ID: <200306171910.56181.gleu@wanadoo.fr> (raw)
In-Reply-To: <Pine.LNX.4.44.0306171845010.26046-100000@matrix.gatewaynet.com>
References: <Pine.LNX.4.44.0306171845010.26046-100000@matrix.gatewaynet.com>

Hi,

Le Mardi 17 Juin 2003 20:46, Achilleus Mantzios a écrit :
> On 17 Jun 2003, Rado Petrik wrote:
> > How I create table1 from other table2 .
> >
> > "cp table1 table2"
>
> create table table2 as select * from table1;
>
Another way would be:
  select * into table2 from table1;

(See 
http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=sql-selectinto.html).


-- 
Guillaume <!-- http://absfr.tuxfamily.org/ -->.



view thread (8+ messages)  latest in thread

Message-ID: <200306171910.56181.gleu@wanadoo.fr>
Permalink:  ../200306171910.56181.gleu@wanadoo.fr/
Also on:    postgresql.org/message-id/200306171910.56181.gleu@wanadoo.fr

 · 

reply

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: gleu@wanadoo.fr
  Subject: Re: CREATE table1 FROM table2
  In-Reply-To: <200306171910.56181.gleu@wanadoo.fr>

* 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