i have a column with 'char' data type with two format records like this,
my_char_column
2030-05-12
2/8/2017
2012-12-13
the problem i want to change type data to 'date' with 'Y-m-d' format like this,
my_char_column_new
2030-05-12
2017-08-02
2012-12-13
i have tried to use this query but doesn't work
UPDATE my_table SET my_char_column = DATE_FORMAT(my_char_column,'%Y-%m-%d') where my_char_column LIKE'%/%'