So überprüfen Sie, ob in einer anderen Tabelle MySQL ein Wert vorhanden ist

SELECT *
FROM tableB
WHERE ID NOT IN (
  SELECT ID FROM tableA
);
Nasty Nightingale