src/db/BuildSql.php
public function getTableStatus($field = '')
    {

        $this->field($field);
        $this->bulid['sql'] = 'SHOW TABLE STATUS WHERE NAME = \'' . $this->bulid['table'] . '\'';
        $result             = $this->query();
        $list               = $result->fetch(PDO::FETCH_ASSOC);

        if (count($this->options['field']) == 1) {
            foreach ($list as $key => $value) {
                if (!isset($list[$field])) {
                    throw new Exception('SQL ERROR : 字段信息不存在 [' . $field . ']');
                }

                $data = $list[$field];
            }
        } else {
            $data = $list;
        }

        return $data;
    }
public function getTableStatus($field = '')
    {

        $this->field($field);
        $this->bulid['sql'] = 'SHOW TABLE STATUS WHERE NAME = \'' . $this->bulid['table'] . '\'';
        $result             = $this->query();
        $list               = $result->fetch(PDO::FETCH_ASSOC);

        if (count($this->options['field']) == 1) {
            foreach ($list as $key => $value) {
                if (!isset($list[$field])) {
                    throw new Exception('SQL ERROR : 字段信息不存在 [' . $field . ']');
                }

                $data = $list[$field];
            }
        } else {
            $data = $list;
        }

        return $data;
    }
查询数据表信息