Probe con lo que me indicas,
pero ahora me da el siguiente error:

SQL:ERROR: error de sintaxis en o cerca de <<:>>;
Error while executing  the query


aunque esto si funciona desde el pgadmin


On Tue, May 4, 2010 at 10:30 PM, Jaime Casanova <[email protected]>wrote:

> 2010/5/4 Desarrollo Escuintla <[email protected]>:
> >
> >
> > select tbl_08.tbl_08_fecha,tbl_10.* from tbl_10
> > right join tbl_08
> > on
> > tbl_08.tbl_08_no=tbl_10.tbl_08_no
> > where tbl_08.tbl_08_fecha BETWEEN to_date(:PDE,'DD/MM/YYYY') AND
> > to_date(:PA,'DD/MM/YYYY');
> >
> >
> >
> > me muestra el siguiente error:
> >
> > SQL:ERROR: no existe la función  to_date(date,unknown);
> > Error while executing  the query
> >
>
> necesitas un cast: to_date(:PA, 'DD/MM/YYYY'::text)
>
> --
> Jaime Casanova         www.2ndQuadrant.com
> Soporte y capacitación de PostgreSQL
>



-- 
Saludos

_________________
José de Paz
Escuintla, Guatemala
Tel. (502)-56041676

http://desarrolloescuintla.wordpress.com

Responder a