1

I have a query SELECT id FROM log WHERE id NOT IN (SELECT id FROM table). This query works fine however I want to delete all the rows that belong to this query result. How can I execute that delete using mysql

0

1 Answer 1

3

You can use:

DELETE FROM log WHERE id NOT IN (SELECT id FROM table);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.