0
I have a question regarding the preparation of an SQL query in which I pass a registration date and check if it is bigger than the current date, but I have a problem the registration date is varchar and follows the format "dd/mm/yyyy", follows below the select:
SELECT * FROM Evento
WHERE data_evento > curdate()
ORDER BY idEvento ASC LIMIT 0,3;
The date format is different and the type should be date/datetime to avoid other problems. The ideal is to arrange this in a new column if not possible the gain break is Date (varchar) to date.
– rray
@rray thanks for the tip, I even know it is not correct but unfortunately I can not change, certainly changing the format would work perfectly, but will not be possible?
– Bruno Richart