src/DB/Connecter/MySQLConnecter.php
public function getPK($table)
    {
        $table_info = $this->getMetaData($table, false);
        foreach ($table_info as $ti) {
            if ($ti['Extra'] == 'auto_increment') {
                return $ti['Field'];
            }
        }

        return false;
    }
public function getPK($table)
    {
        $table_info = $this->getMetaData($table, false);
        foreach ($table_info as $ti) {
            if ($ti['Extra'] == 'auto_increment') {
                return $ti['Field'];
            }
        }

        return false;
    }
获取表的主键名

@param string $table
@return bool