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

Hey Leute!

Ich versuche jetzt seit über einer Stunde ein query zu erstellen, dass folgendes für mich tut.

ich habe eine tabelle dieser art:


+---------------------+-----------+

| date                | value     |

+---------------------+-----------+

| 2007-01-19 13:23:00 | 95.670000 |

| 2007-01-19 13:25:00 | 95.660000 |

| 2007-01-19 13:26:00 |  0.000000 |

| 2007-01-19 13:27:00 | 95.704000 |

+---------------------+-----------+

ich möchte jetzt einen wert in dieser tabelle verändern, aber nur, wenn etwas bestimmtes zutrifft. doch ich schaff es mit der sql syntax einfach nich :( also sowas wie:

UPDATE myTable

    IF(value=0, SET value=3, SET VALUE=9)

    WHERE date='2007-01-19 13:26:00';

in worten:

änder den wert der variable value, wenn er null ist auf 3, ansonsten auf 9. bei der row, bei der das date '2007-01-19 13:26:00' ist.

ich habs auch schon mit case und so probiert. ich weiss nicht weiter :(

ich hoffe ihr könnt mir helfen.

schonmal danke fürs lesen ^^

steht im titel.

es ist mysql-4.1.13

upps, jetz hast schnelle geändert als ich gepostet hab :>

alles klar, das geht =)

und is sogar vollkommen logisch *g*

vielen vielen dank, frank :)

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.