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.

Datenübernahme von MySQL zu MySQL

Empfohlene Antworten

Veröffentlicht

Hallo!

Ich möchte alle Datensätze einer MySQL Datenbank in eine andere Tabelle einer anderen MySQL Datenbankkopieren. Also eine Datenübernahme...

Die Struktur dieser Tabellen ist nicht identisch!

Wie stelle ich dies am schnellsten und einfachsten an ohne jeden Datensatz von Hand hin und her kopieren zu müssen?

Gibt es da nen SQL Befehl oder ein Skript?

Verwendete MySQL Version: MySQL 4.1.7

Danke für Eure Hilfe!

insert into Tabelle2 values select * from tabelle1

Ups, die Struktur ist nicht identisch ist mir eben aufgefallen.

Dann musst du das im select-statement entsprechen anpassen, dass nur passende Daten und in der passenden Reihenfolge (evtl. noch ein (Feld1, Feld2 ...) nach Tabelle2 angeben) zurückgeliefert werden.

  • Autor

Ich habe gerade festgestellt das es eine solche automatische Datenübernahme in meinem Fall nicht wirklich sinvoll ist da die Quelltabele wesentlich weniger Attribute besitzt als die Zieltabelle. Und diese zusätzlichen Attribute müssen auch gepeflegt werden...

Also doch alles von Hand!!! Sch...

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.