mysql事務嵌套

假如須要調用方法a,方法a裏面有方法b,他們都含有mysql事務,會報錯,因此要用程序記錄嵌套層數,裏面方法報錯,外面也不能提交mysql private $transaction_count = 0;//事務嵌套層級 public function beginTransaction() { ++ $this->transaction_count; if($this->transa
相關文章
相關標籤/搜索