Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/56.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql Codeigniter获取所有现场信息_Mysql_Codeigniter - Fatal编程技术网

Mysql Codeigniter获取所有现场信息

Mysql Codeigniter获取所有现场信息,mysql,codeigniter,Mysql,Codeigniter,我正在编写一个脚本,根据主数据库检查客户机的数据库是否是最新的,但是 $this -> db-> field_data($a_table) 函数不返回所有字段详细信息 我需要像自动增量(在PhpMyAdmin中的Extra下)、指定的ZEROFILL(在Attributes下)和所有其他信息(比如自动增量从哪里开始)这样的详细信息 我找不到任何其他方式来获取这些信息,所以如果不可能,那也没关系,但如果有人知道如何获取这些信息,那就太好了 提前使用Thanx以下方法 $this-&g

我正在编写一个脚本,根据主数据库检查客户机的数据库是否是最新的,但是

$this -> db-> field_data($a_table)
函数不返回所有字段详细信息

我需要像自动增量(在PhpMyAdmin中的Extra下)、指定的ZEROFILL(在Attributes下)和所有其他信息(比如自动增量从哪里开始)这样的详细信息

我找不到任何其他方式来获取这些信息,所以如果不可能,那也没关系,但如果有人知道如何获取这些信息,那就太好了

提前使用Thanx

以下方法

$this->db->list_fields('table')

和自增

$next = $this->db->query("SHOW TABLE STATUS LIKE 'table-name'");
$next = $next->row(0);
$next->Auto_increment;
echo $next->Auto_increment;
下边用

$this->db->list_fields('table')

和自增

$next = $this->db->query("SHOW TABLE STATUS LIKE 'table-name'");
$next = $next->row(0);
$next->Auto_increment;
echo $next->Auto_increment;