We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it currently possible to execute a delete query that includes a join? I'd like to be able to do that without running a sub query.
Here is my ideal sql:
DELETE posts FROM posts INNER JOIN projects ON projects.project_id = posts.project_id WHERE projects.client_id = ?
This what I am stuck with now:
DELETE FROM posts WHERE posts.project_id IN (( SELECT posts.project_id FROM posts INNER JOIN projects ON projects.project_id = posts.project_id WHERE project.client_id = ? ));
The text was updated successfully, but these errors were encountered:
Hi @bradenrayhorn, thanks for reporting the issue, it helps with prioritising new features for next releases.
Currently mysql delete with join is not supported, support will be added in some of the future releases.
Sorry, something went wrong.
Ok, thank you. I look forward to this future release.
This feature is now implemented in the develop branch and will be released later with release 2.7.0 version.
develop
Delete with join is now possible with USING clause - Sample test
USING
No branches or pull requests
Is it currently possible to execute a delete query that includes a join? I'd like to be able to do that without running a sub query.
Here is my ideal sql:
This what I am stuck with now:
The text was updated successfully, but these errors were encountered: