$this->db->delete_using()

Adds a table name and an alias to the delete statement

$this->db->delete_using('mytable','my_alias')

The first parameter is the name of the table that the delete statement will be using, the second parameter will be the alias for DELETE to reference the table. All where statements must use the aliases.

$this->db->delete_using('mytable1', 'alias1')->delete_using('mytable2', 'alias2');

  // Produce:
  // DELETE FROM alias1, alias2 USING mytable1 alias1, mytable2 alias2
  

Added 24 March 2021