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.

Excel -> MySQL

Empfohlene Antworten

Hi,

ich stehe im Moment vor der Aufgabe eine Excel-Tabelle in eine MySQL-DB zu übernehmen. Hat das schonmal jemand gemacht und Erfahrungen damit ?

Ich steh nämlich grad wie'n ein Sch*grunzendesTier*n vorm Uhrwerk... :rolleyes:

Das Projekt selbst, das mit der MySQL-DB arbeitet ist mit PHP gescriptet.

Danke schonmal ! :D

MfG :)

Vorgehensweise:

1. Du erstellst die Tabellen manuell. Nur du weißt,

welche Datentypen und Felder du brauchst.

2. Du exportierst die Excel-Tabelle als CSV-Datei

2. Diese CSV-Datei importierst du dann in MySQL in

die von dir in (1) erstellte Tabelle.

Dazu benötigte Befehle:

"6.5.3 CREATE TABLE Syntax"

http://www.mysql.com/doc/C/R/CREATE_TABLE.html

"6.4.9 LOAD DATA INFILE Syntax"

http://www.mysql.com/doc/L/O/LOAD_DATA.html

Vielleicht gibt es aber noch einen anderen Weg - den

kenne ich allerdings nicht.

<FONT COLOR="#a62a2a" SIZE="1">[ 26. November 2001 13:52: Beitrag 1 mal editiert, zuletzt von blast ]</font>

Hi,

besten Dank für den Tip mit der CSV-Datei !!!

Die kann ich nähmlich in PHP auslesen... :D

MfG

Hi

Würde es nicht auch so gehen??

Vom Excel in ein txt file exportieren und dann mit LOAD DATA INFILE???

Cyrill

Na wennste es schon über drei schritte machen willst, dann exportier die Excel Datei doch in Access und dort speicherst sie dann mittels dem ODBC Treiber auf deinem SQL Server ab.:-)

Den wirst ja installiert haben wenn Du schon mit SQL und MS arbeitest?!

<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Zitat:</font><HR>Original erstellt von Cherokee:

<STRONG>Na wennste es schon über drei schritte machen willst, dann exportier die Excel Datei doch in Access und dort speicherst sie dann mittels dem ODBC Treiber auf deinem SQL Server ab.:-)

Den wirst ja installiert haben wenn Du schon mit SQL und MS arbeitest?!</STRONG>

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.