Exemplo n.º 1
0
 /**
  * 获取下条自增ID
  */
 public function getNextId()
 {
     $_sql = "SHOW TABLE STATUS LIKE '{$this->_table}'";
     return $this->_db->getNextId($_sql);
 }
Exemplo n.º 2
0
 /**
  * 获取下条自增ID
  */
 protected function getNextId()
 {
     $this->_db->_sql = "SHOW TABLE STATUS LIKE `{$this->_table}`;";
     return $this->_db->getNextId();
 }