Here's my problem...I have a database full of dates that were entered in this format: 1/1/2005 0:00:00
This field is currently in varchar...how would I go about changing these dates to the proper format using str_to_date? I understand how that function works, but unfortunately, my mysql knowledge is limited to doing single retrieval queries...
I do know how to grab the date value, use php to convert it, and then insert it back into the row...but there's got to be a more efficient way with just mysql, right?
This field is currently in varchar...how would I go about changing these dates to the proper format using str_to_date? I understand how that function works, but unfortunately, my mysql knowledge is limited to doing single retrieval queries...
I do know how to grab the date value, use php to convert it, and then insert it back into the row...but there's got to be a more efficient way with just mysql, right?