MySQL Forums
Forum List  »  German

Hilfe Datentyp varchar zu Date und Datetime
Posted by: Lars Busch
Date: May 14, 2014 05:11PM

Hallo liebe Community, Hallo Experten,
ich habe folgendes Problem:

in meiner MySql 5.1x DB habe ich in einer Tabelle eine Spalte vom Typ varchar(45) welche Datumswerte enthält.

Diese Werte sehen so aus: 201001031229
Der Zelleneintrag entspricht dem 2010.01.03 12:29.

Wie kann ich meine Tabellen modifizieren (alter) damit aus der Datentyp von varchar auf Datetime (yyyy.mm.dd hh:mm) geändert wird.

weiterhin möchte ich eine zusätzliche Spalte bauen vom Typ Date welche entsprechend nur das Datum enthält (yyyy.mm.dd)

Besten Dank für alle Antworten im voraus.
Gruß
Lars

Options: ReplyQuote


Subject
Views
Written By
Posted
Hilfe Datentyp varchar zu Date und Datetime
1240
May 14, 2014 05:11PM


Sorry, you can't reply to this topic. It has been closed.

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.