SQLite: delete all records from table specified in another table SQLite: delete all records from table specified in another table sqlite sqlite

SQLite: delete all records from table specified in another table


Try this query

Delete from mytab where id in (select id from deltab);


Try this:

DELETE FROM mytab       WHERE EXISTS (SELECT *              FROM deltab              WHERE deltab.ID = mytab.ID)