예제 #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();
 }