On 19-07-2013 17:17, Paulo wrote:
Exatamente.


Por favor, não faça top-posting pois bagunça o histórico da lista dificultando o entendimento do que está sendo discutido, veja nossas regras [1].


Veja:

fabrizio=# SELECT *
fabrizio-#   FROM (SELECT row_number() OVER () AS n,
fabrizio(#                c
fabrizio(# FROM regexp_split_to_table('c1,c2,c3,c4', ',') AS a(c)) AS b
fabrizio-#  WHERE n IN (1,3);
 n | c
---+----
 1 | c1
 3 | c3
(2 rows)


Att,


[1] http://www.postgresql.org.br/RegrasLista

--
   Fabrízio de Royes Mello         Timbira - http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a