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.

Empfohlene Antworten

Veröffentlicht

Halllo

ich möchte aus einmaligen Wartungsgründen Datensätze

zu "verdoppeln".

Leider nimmt MySQL meine Syntax nicht an, wieso ???

Insert Into test

Select *

From test

On duplicate key update mein_key = mein_key +1

Ich bekomme die Fehlermeldung "mein_key" ambiguous,

wie kann ich in dieser Syntax den key eindeutig ansprechen?

Kennt hier jemand eine andere Lösung die funktioniert oder kann mir einer weiterhelfen das meine Lösung klappt.

mfg

Für mich klingt das so, als möchtest Du irgendetwas sequentiell in Deinem Result abarbeiten, wovon ich Dir dringend abrate. Es hat schon seinen Grund, warum identische Datensätze nicht redundant auftauchen.

Wenn Du innerhalb Deines Resultsets navigieren möchtest, sprich den Datensatzzeiger vor und zurück bewegen willst, dann verwende einen Cursor.

Phil

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.