If performance is a problem, I would avoid using it DATEthis way, as this will prevent the index from being used efficiently and lead to a full crawl. For small tables, this may not be a problem, but if your table is large, you will probably find that it gives better performance:
SELECT *
FROM rapoarte
WHERE ziua >= '2010-01-12'
AND ziua < '2010-01-15'
source
share