Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

csv-import datum in mysql

Empfohlene Antworten

Guten Morgen. Mal wieder ein SQL-Problem. Ich importiere in eine Mysql-DB per Load Data infile einen Datensatz.

Das Datumsformat in der MySQL Datenbank ist 0000-00-00 00:00:00, also der Standard.

In der csv-Datei steht als Datum z.B. 31.3.2005. Daraus macht er beim Import in mysql 2031-03-20 05:00:00

Wie kann ich das ändern?

hi,

ich bin jetzt kein SQL-Freak, aber soweit ich weiß gibt es eine Funktion oder wie das bei SQL auch immer heissen mag: To_Date('<Deine_Datum>','<Dein Format>'), so sollte es möglich sein dein csv-Datum korrekt umzuwandeln...

sry, wenn ich jetzt was durcheinander gebracht hab...

Nope, das geht so leider nicht.

Nur ein kleiner Hinweis, ich weiß es auch nicht genau:

Mach ein SQL-Dump, da stehen am Beginn Definitionen. Vielleicht kannst du dir selbst Konstanten definieren, wie etwa in Oracle.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.