Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   SQL (https://www.clubdelphi.com/foros/forumdisplay.php?f=6)
-   -   Sysdate y Cast MYSQL (https://www.clubdelphi.com/foros/showthread.php?t=33324)

elisa44 04-07-2006 02:15:14

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
:(


La franja horaria es GMT +2. Ahora son las 00:29:15.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi