我需要帮助我是秘鲁人,问题:
SELECT fechas,dni
FROM asistencia.reporteasistenciaview
WHERE fechas between '03-03-2014' and '17-03-2014'
AND dni = '44845551'
order by fechas ASC
答案 0 :(得分:2)
不确定问题是什么,但使用ISO 8601日期格式YYYY-MM-DD
,这是日期输入的recommended format,并与任何区域设置一起使用:
SELECT fechas, dni
FROM asistencia.reporteasistenciaview
WHERE fechas BETWEEN '2014-03-03' AND '2014-03-17'
AND dni = '44845551'
ORDER BY fechas;