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.

Datumsfeld

Empfohlene Antworten

Veröffentlicht

Hallo,

ich habe in Problem mit einem Updatebefehl!

Ich möchte in einer Tabelle "Preisliste" ein Datumsfeld, welches ein Datum enthält leeren, sodass nichts drin steht!

Der Befehl:

update preisliste set t$tdat=NULL where t$cpls='285' and t$tdat=to_date('31.12.2099','DD.MM.YYYY')and t$item='TK7130'

gibt folgende Meldung Error: ORA-01407: cannot update ("preisliste"."T$TDAT") to NULL

Es handelt sich bei dieser Sache um 27000 einzelne Positionen die nicht so einfach händisch zu löschen sind!

Weiß jemand einen Rat?

Vielen Dank!

Naja auf dem Feld liegt ein NOT NULL Constraint. D.h. entweder der Constraint ist falsch gesetzt und Du musst ihn vorher entfernen (lassen), oder aber es gibt einen guten Grund warum jemand diesen Constraint eingeführt hat und das setzen eines NULL Wertes hätte unerwartete Auswirkungen auf die Anwendung o.ä.

Auf jeden Fall sollte man da genauer Nachforschen bevor man den Constraint entfernt.

Dim

Hallo,

vielen Dank für deine Mühe aber ich habe die Lösung schon selber gefunden.

update preisliste set t$tdat=(select t$tdat from preisliste where t$cpls='285' and t$item='KI5001'and t$tdat<to_date('01.01.1989','DD.MM.YYYY'))

where t$cpls='285' and t$tdat=to_date('31.12.2099','DD.MM.YYYY')

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.