SQL Suche von Einzel-Werten in einer Spalte
This commit is contained in:
@@ -829,3 +829,16 @@ Für eine kurzfristige Analyse ist jedoch das **General Log** meist die bessere
|
||||
|
||||
> **Fazit:** Für sehr kurze Queries ist `SHOW PROCESSLIST` ungeeignet. Verwende stattdessen das **General Log** oder – falls verfügbar – das **Performance Schema**.
|
||||
|
||||
|
||||
## Suche von Werten die in einer Spalte nur einmal vorkommem
|
||||
|
||||
SELECT *
|
||||
FROM tabelle
|
||||
WHERE spalte IN (
|
||||
SELECT spalte
|
||||
FROM tabelle
|
||||
GROUP BY spalte
|
||||
HAVING COUNT(*) = 1
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user