MySQL Forums
Forum List  »  German

Timestamp umwandeln in Datumsformat
Posted by: Markus Pehr
Date: May 10, 2023 12:26AM

Ich habe in einer Tabelle einen Timestamp stehen, den ich mir auch in einem Onlinetool im richtigen Datumsformat anschauen kann.
Ein SELECT ts FROM ts_number zeigt mir alle Timecodes in Form von zB 1670866392563 an.
Wie kann ich aber beim auslesen den Timestamp gleich in ein lesbares Datumsformat umwandeln?
Funktioniert nicht:
SELECT DATE_FORMAT(FROM_UNIXTIME(ts_number.ts), '%d %m %Y %h%:%i%:%s')
AS 'Datum',val

Options: ReplyQuote


Subject
Views
Written By
Posted
Timestamp umwandeln in Datumsformat
131
May 10, 2023 12:26AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.