Re: [Pgsql-ayuda] Insert

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Xavi Puig <personal(at)xavihost(dot)com>
Cc: "pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx" <pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx>
Subject: Re: [Pgsql-ayuda] Insert
Date: 2003-10-28 13:02:31
Message-ID: 20031028130231.GA2045@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Tue, Oct 28, 2003 at 01:22:40PM +0100, Xavi Puig wrote:

> Hay alguna manera de insertar todas las tuplas que hay en tab1 en tab2
> pero solo col2, ?s decir:

INSERT INTO tab2 SELECT 500, col2 FROM tab1;

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Los románticos son seres que mueren de deseos de vida"

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Leonardo Boet Sánchez 2003-10-28 14:04:10 RE: [Pgsql-ayuda] idle in transaction... Thnks Jorge Zurita
Previous Message Mauricio E. Pastorini Torres 2003-10-28 12:23:05 [Pgsql-ayuda] hola.. respecto a tu respuesta...