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.

Eine Zeile löschen,die nur NULL enthält.

Empfohlene Antworten

Veröffentlicht

Hallo

Ich habe in einer Tabelle 3 Zeilen, wo in jeder Spalte NULL als Wert steht. Diese Zeilen möchte ich gerne löschen, aber es funktioniert nicht.

Ich habe folgende Befehle ausprobiert:

DELETE FROM tabellenname WHERE spaltenname ='';

DELETE FROM tabellenname WHERE spaltenname ='NULL';

DELETE FROM tabellenname WHERE spaltenname =NULL;

Die Spalte ist vom Typ VARCHAR(20)

Ach ja, hab noch ne Frage: Gibt es ein Tool mit grafischer Oberfläche, mit dem ich meine Tabellen verwalten kann?

Ich hoffe, ihr könnt mir helfen!

Danke!

Servus,

ja, es kann schon sein, dass es für Deine DB ein grafisches Tool gibt. Das war... Ach so, Du hast gar nicht erwähnt, welches DBMS!

Der Umgang mit null-Werten hängt auch vom DBMS ab.

Peter

Ach, sorry, hab ich vergessen. Ich hab MySQL 3.23.57!

Hat funktioniert!

Vielen Dank!!!

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.