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.

Frage nach aktuellem Datum im SQL Update Befehl auf ACCESS DB

Empfohlene Antworten

Veröffentlicht

Hi leute,

ich hab folgendes Problem:

Ich habe eine Access DB und in einer Tabelle die Spalte "datum" und eine

weitere spalte "Status" mit werten von 0 bis 10.

Nun möchte ich mit einem SQL Befehl drüber laufen lassen, der alle Zeilen mit "Status" = 0 und "date" älter als 2 Tage (vom aktuellen Datum aus) auf "Status" = 10 setzt.

soweit bin ich:

UPDATE tabelle SET Status= 10

WHERE Status=0 and datum < date()-2;

allerdings werde ich beim Ausführen der Abfrage nach dem Datum gefragt.

Meine Frage jetzt:

Kann ich das auch in die Abfrage mit einbauen, und wenn ja, wie geht das?

Danke im vorraus, wenn mir jemand helfen kann.

Probier mal folgendes aus:

SELECT * FROM WHERE Status=0 and datum < now()-2;

Weiss nur nicht, ob dies auch bei einer UPDATE-Anweisung funktioniert.

Aber ein Versuch ist es wert!

PS:

Lass es mich wissen, ob das klappt.

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.