querybuilder icon indicating copy to clipboard operation
querybuilder copied to clipboard

join support for update/delete statements

Open ceastwood opened this issue 5 years ago • 5 comments

If the database engine supports a delete + join syntax then compile the query, if not, throw an exception.

  • [x] SqlServer
  • [ ] MySql
  • [ ] PostgreSQL
  • [ ] Oracle (delete from where exists ? )
  • [ ] Other compilers or throw an exception

ceastwood avatar Dec 31 '18 18:12 ceastwood

Succeeds Issue #16

ceastwood avatar Dec 31 '18 18:12 ceastwood

For MySql we can use this approach https://stackoverflow.com/a/4192849/1104402

ahmad-moussawi avatar Jan 02 '19 16:01 ahmad-moussawi

@ahmad-moussawi Yes sir, the syntax is pretty much the same as that for SqlServer. I will be testing it against MySql here before committing that one up.

ceastwood avatar Jan 02 '19 16:01 ceastwood

This still being worked on? Can we get some insight on what needs to be done?

I see the SqlServer checkbox is checked. Does that mean it is already available or is in waiting in some PR where other compilers also need to be updated?

sarvasana avatar Nov 16 '21 09:11 sarvasana

is there any progress with the Delete with joins branch from feb? https://github.com/sqlkata/querybuilder/pull/558

Dave-Coll avatar Sep 15 '22 08:09 Dave-Coll

merged in #614

ahmad-moussawi avatar Sep 27 '22 19:09 ahmad-moussawi