Cita:
En SQL Server o motores que soporten el SQL Ansi92 con 'yyyyMMdd'
|
Cabe anotar que firebird es SQL ansi 92 compatible... yo normalmente hago mis cast bajo el esquema yyyyMMdd
Código SQL
[-]
select * from agenda where fecha = cast('2007-11-21' as date)