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 in die datenbank

Empfohlene Antworten

Hallo allerseits,

ich bin ein Anfänger in c# und habe ein Problem.

ich habe eine aufgabe, eine csv-datei in mysql datenbank einzulesen.

wobei exel-tabelle aus meheren Tabellen der Datenbank besteht, (z.B die ersten 3 Spalten sind aus tabelle A, die nächsten 2 aus Tabelle B usw.) und keine Schlüssel (weder FK noch PK) enthält.

kann mir jemand sagen, wie ich es lösen soll :confused:

danke im voraus

Du musst uns nurnoch sagen, wo das konkrete Problem liegt.

Für den Anfang musst Du Dir Deine Aufgabe in Teilaufgaben aufsplitten.

Und diese dann konkret mit Beispielcode angehen.

Ich geb Dir mal einen Einstieg:

1. CSV-Datei eventuell als Text einlesen

2. CSV-Textzeilen splitten

2. Verbindung zur Datenbank herstellen

3. SQL-command's zusammenbasteln

4. SQL abschicken

5. Fehlerbehandlungen

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.