src/Mysqli.php
public function getField($field = 'column_name')
    {
        $this->where = ' where table_name = ' . "'" . $this->table . "'";
        $this->field = $field;
        $this->table = 'information_schema.columns';

        $this->_sql = "select " . $this->field . " from " . $this->table . $this->where;
        $result     = $this->query();

        while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
            if (stripos($field, ',') === false) {
                $data[] = $row['column_name'];
            } else {
                $data[] = $row;
            }

        }

        return $data;
    }
public function getField($field = 'column_name')
    {
        $this->where = ' where table_name = ' . "'" . $this->table . "'";
        $this->field = $field;
        $this->table = 'information_schema.columns';

        $this->_sql = "select " . $this->field . " from " . $this->table . $this->where;
        $result     = $this->query();

        while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
            if (stripos($field, ',') === false) {
                $data[] = $row['column_name'];
            } else {
                $data[] = $row;
            }

        }

        return $data;
    }
查询表字段名
@date   2017-03-19T16:14:45+0800
@author ChenMingjiang
@return [type]                   [description]