I've been using php for a while but just started using mysql. In my haste I created a table which stores a timestamp in a varchar field (01/Jan/2003 hh:mm:ss)so they would be in the format I wanted(01/Jan/2003 hh:mm:ss). What I should have done was store dates as a datetime field and converted them afterwards whith php. That's not really a problem but I would like to keep the existing data. My thought was to create a new table with the date field as a datetime field. Then run a query extracting all records from the existing table, manipulate the date with php and put the results in the new table.
Is theis the best way of correcting my earlier mistake or is there an easier way.
thanks
Ian It's not a lie if you believe it!
Is theis the best way of correcting my earlier mistake or is there an easier way.
thanks
Ian It's not a lie if you believe it!