From: | Jaime Casanova <jaime(at)2ndquadrant(dot)com> |
---|---|
To: | Gilberto Castillo Martínez <gilberto(dot)castillo(at)etecsa(dot)cu> |
Cc: | POSTGRES <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Re: Particionado |
Date: | 2013-04-18 23:16:30 |
Message-ID: | CAJKUy5htH9GwR_-6Y4OOsS_saf0nPoskwDrBe=_GMxF4OBznHA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
On Thu, Apr 18, 2013 at 1:59 PM, Gilberto Castillo
<gilberto(dot)castillo(at)etecsa(dot)cu> wrote:
>
> CREATE RULE produccion_total_r
> AS ON select
> TO view_produccion_total
> DO INSTEAD
> (SELECT * FROM produccion_delta01 WHERE anno = valor_an AND mes =
> valor_ms
> SELECT * FROM produccion_delta02 WHERE anno = valor_an1 AND mes =
> valor_ms2
>
> ....
> );
>
>
Crea una vista y usa UNION o UNION ALL para juntar los resultados
--
Jaime Casanova www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
Phone: +593 4 5107566 Cell: +593 987171157
-
Enviado a la lista de correo pgsql-es-ayuda (pgsql-es-ayuda(at)postgresql(dot)org)
Para cambiar tu suscripción:
http://www.postgresql.org/mailpref/pgsql-es-ayuda
From | Date | Subject | |
---|---|---|---|
Next Message | Guillermo E. Villanueva | 2013-04-19 03:07:28 | duda sobre codificación |
Previous Message | Gilberto Castillo | 2013-04-18 18:59:41 | Particionado |