I have a date field (var) holding date information in format of "mm-dd-yy" e.g 07-01-12. I need to change it to date format. I tried the following but doesn work. I get an Syntax error.
mysql_query("UPDATE `table-name`
SET `column-name` = STR_TO_DATE(`column-name`, '%m-%d-%y')")