문제

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 ?

도움이 되었습니까?

해결책 2

Try this:

select from_unixtime(substring(runtime,1,10)) from students;

다른 팁

Use from_unixtime

SELECT
  from_unixtime(timestamp) 
FROM 
  your_table
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top