[pgsql-ayuda] Ayuda

Jose Muro jomupe@sicon.net
Tue, 20 Feb 2001 16:24:57 +0100


Bueno ya se como se hace

SELECT campo_tabla1 INTO TABLE neva_tabla FROM tabla_1 UNION SELECT
campo_tabla2 FROM tabla2 UNION SELECT campo_tabla3 FROM tabla3

Un saludo. José

----- Original Message -----
From: "anderson gutierrez pizarro" <andergp@aloccidente.com>
To: <pgsql-ayuda@tlali.iztacala.unam.mx>
Sent: Tuesday, February 20, 2001 2:57 PM
Subject: Re: [pgsql-ayuda] Ayuda


> Héctor Balanzar escribió:
>
> > Anderson:
> > De acuerdo a la salida que quieres es:
> >
> > SELECT  campo from tabla_uno UNION SELECT campo FROM tabla_dos UNION
SELECT
> > campo FROM tabla_tres;
> >
> > Nota: Los datos deben ser del mismo tipo.
> >
> > Para mayor información sobre postgres y select visita:
> > http://www.postgresql.org/users-lounge/docs/7.0/tutorial/
> >
> > > Gracias por la respuesta lo que necesito es esto.
> > > tengo las siguientes tablas
> > >
> > > l01g1005
> > > 701
> > > 702
> > > 703
> > > 704
> > >
> > > l02g1005
> > > 701
> > > 705
> > > 706
> > > 707
> > >
> > > l03g1005
> > > 702
> > > 708
> > > 709
> > > 710
> > >
> > > la cuarta tabla debe quedar
> > >
> > > resultado
> > > 701
> > > 702
> > > 703
> > > 704
> > > 705
> > > 706
> > > 707
> > > 708
> > > 709
> > > 710
> > >
> > > gracias espero que con esta explicacion quede mas claro gracias lista
> > >
> > >
> > >
> > >
> > >
> > >
> > > --------- Pie de mensaje -------------------------------------------
> > > Archivo historico: http://tlali.iztacala.unam.mx/maillist/pgsql-ayuda
> > > Cancelar inscripcion:
> > > mail to: majordomo@tlali.iztacala.unam.mx
> > > text   : unsubscribe pgsql-ayuda
> > >
> > >
> >
> > --------- Pie de mensaje -------------------------------------------
> > Archivo historico: http://tlali.iztacala.unam.mx/maillist/pgsql-ayuda
> > Cancelar inscripcion:
> > mail to: majordomo@tlali.iztacala.unam.mx
> > text   : unsubscribe pgsql-ayuda
>
> Hola Héctor Balanzar
> Muy bien por el comando pero necesito que se cree fisicamente la tabla no
que
> sea un query gracias.
>
> --------- Pie de mensaje -------------------------------------------
> Archivo historico: http://tlali.iztacala.unam.mx/maillist/pgsql-ayuda
> Cancelar inscripcion:
> mail to: majordomo@tlali.iztacala.unam.mx
> text   : unsubscribe pgsql-ayuda
>

--------- Pie de mensaje -------------------------------------------
Archivo historico: http://tlali.iztacala.unam.mx/maillist/pgsql-ayuda
Cancelar inscripcion:
mail to: majordomo@tlali.iztacala.unam.mx
text   : unsubscribe pgsql-ayuda