Listar los elementos de una tabla cuyos indices se guardan en otra como elementos de un array.
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)
Reply to: