Hola ----------------------------------- Charles Clavadetscher Spitzackerstrasse 9 CH - 8057 Zürich Tel: +41-79-345 18 88 -------------------------------------
Hay una lista de correo en español. En esta el idioma en uso es el inglés. About your question. You can export data to a file using copy or \copy (if you work fro a remote client). You can use a select statement that gives you the exact result that you need. For example. Let's assume that you have a table (e.g. t) with a column that you want to use for grouping (e.g. group_c). This is basically your use case. Then you can do the following in psql: \copy (select * from t where group_c = 'some value') to filename.csv csv header delimiter ';' null '' The exact syntax is on the postgresql page. Unfortunately I have no access right now to a PC and can't check for links. I will catch that up later if no one else responds. Regards Charles |