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 von einer Tabelle in eine andere schieben

Empfohlene Antworten

Veröffentlicht

Hi, ich hab 2 mySQL Datenbanken

nun sollen Daten aus der einen Datenbank in die andere verschoben werden, wie kann ich das am einfachsten machen?

so bestimmt nicht oder (funzt nämlich nicht *gg*)?

INSERT INTO namen (A_VName, A_NName, A_Strasse, A_PLZ, A_Ort, A_Tele1, A_Mail1) 

VALUES ((SELECT U_VName, U_NName, U_Strasse, U_PLZ, U_Ort, U_Tele1, U_Mail1 FROM www.user WHERE U_Recht = 1;));

google: mysqldump


mysqldump -uuser1 -ppass1 -hhost1 database1 > mysql -uuser2 -ppass2 database2

so machsts dus wenn du wirklcih zwei getrennte server oder datenbanken hast

wenn du nur zwei tables hast dann machst dus am besten mit inset select

  • 2 Monate später...

Hallo!

Was ist, wenn es nicht 2 DB´s sind, sondern nur die Daten einer Tabelle in eine andere verschoben (bzw. kopiert) werden sollen? Wie lautet da die genaue MySQL-Syntax? Habs erst auch genauso probiert wie oben, aber so funktionierts nicht.

Hat sich schon erledigt. So hats bei mir (MySQL) funktioniert:

INSERT INTO namen (A_VName, A_NName, A_Strasse, A_PLZ, A_Ort, A_Tele1, A_Mail1) 

SELECT U_VName, U_NName, U_Strasse, U_PLZ, U_Ort, U_Tele1, U_Mail1 FROM user WHERE U_Recht = 1;

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.