Answers for "mysql delete if not in another table"

SQL
0

mysql delete if not in another table

DELETE b FROM BLOB b 
  LEFT JOIN FILES f ON f.id = b.fileid 
      WHERE f.id IS NULL
Posted by: Guest on June-14-2020
0

mysql delete if not in another table

DELETE FROM BLOB
 WHERE fileid NOT IN (SELECT f.id 
                        FROM FILES f)
Posted by: Guest on June-14-2020
0

mysql delete if not in another table

DELETE FROM BLOB 
 WHERE NOT EXISTS(SELECT NULL
                    FROM FILES f
                   WHERE f.id = fileid)
Posted by: Guest on June-14-2020

Code answers related to "mysql delete if not in another table"

Code answers related to "SQL"

Browse Popular Code Answers by Language