コード例 #1
0
ファイル: Model.php プロジェクト: v3u3i87/run_cli
 /**
  * 获取下条自增ID
  */
 public function getNextId()
 {
     $_sql = "SHOW TABLE STATUS LIKE '{$this->_table}'";
     return $this->_db->getNextId($_sql);
 }
コード例 #2
0
ファイル: Query.php プロジェクト: v3u3i87/upadd
 /**
  * 获取下条自增ID
  */
 protected function getNextId()
 {
     $this->_db->_sql = "SHOW TABLE STATUS LIKE `{$this->_table}`;";
     return $this->_db->getNextId();
 }