Em 29 de setembro de 2010 10:05, Pedro Espíndola
<[email protected]>escreveu:

>
> como faço para exportar algumas linhas de uma tabela (postgres 8.3),
> ex: select * from pessoa where status = 1 e depois importo em outro
> banco tb postgres em uma tabela com a mesma estrutura ?
>
>
Podes utilizar o COPY [1] em conjunto com o psql [2] para transportar os
registros resultantes desse select.

[1] http://www.postgresql.org/docs/current/interactive/sql-copy.html
[2] http://www.postgresql.org/docs/current/static/app-psql.html


Cordialmente,

-- 
Fabrízio de Royes Mello
>> Blog sobre TI: http://fabriziomello.blogspot.com
>> Perfil Linkedin: http://br.linkedin.com/in/fabriziomello
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a