Listar los elementos de una tabla cuyos indices se guardan en otra como elementos de un array.

From: Calabaza <calalinux(at)gmail(dot)com>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Listar los elementos de una tabla cuyos indices se guardan en otra como elementos de un array.
Date: 2008-10-30 01:12:03
Message-ID: 958993320810291812l33769155vfa836a219932110b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Amigos tengo el siguiente problema:

¿Cómo listo los elementos de una tabla cuyos indices se guardan en
otra como elementos de un array?

Aquí el código:

Select grolist from pg_group where groname='aprovisionamiento';

Devuelve:
"{111,112}"

Y al hacer:
Select
*
from
pg_user
where
usesysid = any (Select grolist from pg_group where groname='aprovisionamiento')
order by a.usesysid desc;

Me da el siguiente error:

ERROR: operator does not exist: integer = integer[]
HINT: No operator matches the given name and argument type(s). You
may need to add explicit type casts.

********** Error **********

ERROR: operator does not exist: integer = integer[]
Estado SQL:42883
Sugerencias:No operator matches the given name and argument type(s).
You may need to add explicit type casts.

Yo utilizo:
"PostgreSQL 7.4.8 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.0.2
20050816 (prerelease) (Debian 4.0.1-5)"

Gracias de antemano y disculpen la molestia.-
--
§~^Calabaza^~§ from Villa Elisa, Paraguay
----------------
A hendu hína: Franz Schubert - Fritz Wunderlich - Fischer - Dieskau -
Ihr Bild (La imagen de ella)
http://foxytunes.com/artist/franz+schubert+-+fritz+wunderlich+-+fischer+-+dieskau/track/ihr+bild++(la+imagen+de+ella)

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message marta vicente romero 2008-10-30 08:18:01 Pasar un shp a postgres
Previous Message Tech 2008-10-29 17:29:41 Java. Serializar Objetos