On 11/29/2011 02:33 PM, ruben avila galindo wrote:
asi le mando a la funcion
select * from sch_rpt.fun_ventas(1,1,'2011-11-24
07:00:00',null,null,null,101)
ERROR: syntax error at or near "07"
LINE 10: ..._maq_casino = 101and fecha >=2011-11-24 07:00:00-0...
SSQL = SSQL || 'and fecha tiene
On Tue, Nov 29, 2011 at 12:33 PM, ruben avila galindo
wrote:
> asi le mando a la funcion
>
> select * from sch_rpt.fun_ventas(1,1,'2011-11-24
> 07:00:00',null,null,null,101)
>
> ERROR: syntax error at or near "07"
>
> LINE 10: ..._maq_casino = 101and fecha >=2011-11-24 07:00:00-0...
>
asi le mando a la funcion
select * from sch_rpt.fun_ventas(1,1,'2011-11-24
07:00:00',null,null,null,101)
ERROR: syntax error at or near "07"
LINE 10: ..._maq_casino = 101and fecha >=2011-11-24 07:00:00-0...
^
2011/11/29 Jaime Casano
On Tue, Nov 29, 2011 at 12:20 PM, ruben avila galindo
wrote:
> SSQL = SSQL || 'and fecha >='|| to_timestamp(arg_fecha,'-MM-DD HH:MM:SS')
esyo deberia decir:
to_timestamp(arg_fecha,'-MM-DD HH:MI:SS')
--
Jaime Casanova www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y ca