tags:

views:

37

answers:

2

I have a UNIX-type timestamp stored in an INT column in MySQL. What is the proper way to retrieve this as a MySQL DATETIME?

(I found the answer when re-scanning the MySQL Date functions, but didn't see the answer on SO. Figured it should be here.)

+3  A: 

FROM_UNIXTIME()

Rob
+1  A: 
SELECT  FROM_UNIXTIME(mycolumn)
FROM    mytable
Quassnoi