Roberto Guevara escribió:
> Como decis, al pegar el sql no me fije que pegue el del count , la consulta
> que tira el error es con * y la salida la redirecciono a un archivo:
> 
> -bash-3.00$ cat prueba.sql
> \c danisant;
> set search_path=estadis;
> select * from datest where fcfec>='2006-12-01' and fcfec<='2008-12-31';
> -bash-3.00$ psql  -h 10.12.10.2 -p 5432 -U postgres -W
> danisant<prueba.sql>salida.asc

Como dice Tom en el mensaje que citó Emanuel, usa FETCH.

-- 
Alvaro Herrera      Valdivia, Chile           Geotag: -39,815 -73,257
"Most hackers will be perfectly comfortable conceptualizing users as entropy
 sources, so let's move on."                               (Nathaniel Smith)
--
TIP 9: visita nuestro canal de IRC #postgresql-es en irc.freenode.net

Responder a