2008/10/30 Silvio Quadri <[EMAIL PROTECTED]>:
> 2008/10/29 Calabaza <[EMAIL PROTECTED]>:
>> 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.
> En Postgres 8.3 es ...
> Select
> *
> from
> pg_user, pg_group
> where usesysid = any (grolist)
> and groname='aprovisionamiento'
> order by a.usesysid desc;
Perfecto!, esto funciono a la primera, muchas gracias,
he aprendido otro punto de vista de una consulta sql...
que interesante =)
> Silvio
>
Un abrazo a todos y muchas gracias por su ayuda.-
--
§~^Calabaza^~§ from Villa Elisa, Paraguay
----------------
A hendu hína: Johannes Brahms - Track 05
http://foxytunes.com/artist/johannes+brahms/track/track+05
--
TIP 8: explain analyze es tu amigo