Ver Mensaje Individual
  #1  
Antiguo 04-07-2006
elisa44 elisa44 is offline
Miembro
 
Registrado: jun 2006
Ubicación: Chile
Posts: 15
Reputación: 0
elisa44 Va por buen camino
Question Sysdate y Cast MYSQL

Hola,
Tengo el siguiente query:
Select t1.cam1, t2cam2, t2.time_stamp,.. from tabla1 t1, tabla2 t2 where ... And t1.campo1 > (sysdate – cast(t2.time_stamp as date))
No me funciona, me arroja el siguiente error:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'sysdate' in 'where clause'.
Con una base de datos oracle no hay problema, solo con mysql no funciona.

Gracias
Responder Con Cita