-4

In mysql, I had one table students and that table contains one column name as runtime and that contains values like 1381387683741, 1381387683739 etc.

when I convert this using covertor it shows results

Thu, 10 Oct 2013 06:48:03 GMT

So my question is how I can convert this same as using mysql query ?

hjpotter92
  • 78,589
  • 36
  • 144
  • 183
Neo-coder
  • 7,715
  • 4
  • 33
  • 52

2 Answers2

1

Use from_unixtime

SELECT
  from_unixtime(timestamp) 
FROM 
  your_table
vijaykumar
  • 4,658
  • 6
  • 37
  • 54
  • column runtime data type is double when I run this query SELECT from_unixtime(runtime) FROM students; It shows results NULL – Neo-coder Nov 29 '13 at 05:49
0

Try this:

select from_unixtime(substring(runtime,1,10)) from students;
Vishwas
  • 6,967
  • 5
  • 42
  • 69