多表删除,求助
delete 表一,表2FROM 表一1,表2 where表1.ID = 表2.ID AND 表1.ID='5',
SQL语句是这样的,,
写成$this->db->delete(变量);
实现这个功能,应该这么写
$tables = array(表一,表2);
$this->db->where('ID', '97');
$query =$this->db->delete($tables);
这样试过不行 你有兩個選項 :
1. foreach
2. query()
页:
[1]