I need to fix a table that was built in the wrong way, the field that would be to store the date was created as varchar
.
With this structure I can not select a certain period, since varchar
are sorted from left to right in alphanumeric order.
So if you select 05/30/2016 to 10/06/2016 it will bring an empty result.
The question is how to change the type of this field to date, because when I try to change the incorrect value error, because of the data already in the table.
How to do without losing the information that is contained in the table?