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 que ser

SSQL = SSQL || ' and fecha (mira el espacio antes del and)

Saludos

Rodrigo

                                                              ^

2011/11/29 Jaime Casanova <[email protected] <mailto:[email protected]>>

    On Tue, Nov 29, 2011 at 12:20 PM, ruben avila galindo
    <[email protected] <mailto:[email protected]>> wrote:
    > SSQL = SSQL || 'and fecha
    >='|| to_timestamp(arg_fecha,'YYYY-MM-DD HH:MM:SS')

    esyo deberia decir:
    to_timestamp(arg_fecha,'YYYY-MM-DD HH:MI:SS')

    --
    Jaime Casanova www.2ndQuadrant.com <http://www.2ndQuadrant.com>
    Professional PostgreSQL: Soporte 24x7 y capacitación



Responder a