Question : Convert UNIX_TIMESTAMP column into Datetime

Hello,

 Im trying to convert detes in my existing mysql column which is is UNIX_TIMESTAMP int(9) into datetime.

 There are thousands of values i need to convert. I wonder if there is a SQL query that i can run to convert all these values into their datetime equals, or some other alternatives..

  Thank You..

Answer : Convert UNIX_TIMESTAMP column into Datetime

You can use FROM_UNIXTIME function..

mysql> SELECT FROM_UNIXTIME(1196440219);
        -> '2007-11-30 10:30:19
Random Solutions  
 
programming4us programming4us