Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MySQL データベースがあります。そこに、日付という列を持つテーブルがあります。その列の型はStringです。その列にはタイムスタンプ値 (つまり1370842140205 ) が含まれます。
その値を日付として選択するにはどうすればよいですか? - 10.6.2013 5.29.00
FROM_UNIXTIMEを使用する
SELECT FROM_UNIXTIME(`date` / 1000.0) from your_table
でタイムスタンプからミリ秒を削除し/1000ます。
/1000