首頁 > 資料庫 > mysql教程 > MySQL获取表格信息_MySQL

MySQL获取表格信息_MySQL

WBOY
發布: 2016-05-30 17:11:11
原創
1065 人瀏覽過

MySQL获取表格信息

mysql> use test;
Database changed
mysql> show table status;
+---------------+--------+---------+------------+------+----------------+-------
------+-----------------+--------------+-----------+----------------+-----------
----------+-------------+------------+-----------------+----------+-------------
---+---------+
| Name          | Engine | Version | Row_format | Rows | Avg_row_length | Data_l
ength | Max_data_length | Index_length | Data_free | Auto_increment | Create_tim
e         | Update_time | Check_time | Collation       | Checksum | Create_optio
ns | Comment |
+---------------+--------+---------+------------+------+----------------+-------
------+-----------------+--------------+-----------+----------------+-----------
----------+-------------+------------+-----------------+----------+-------------
---+---------+
| emp           | InnoDB |      10 | Compact    |    0 |              0 |
16384 |               0 |            0 |         0 |           NULL | 2015-09-16
 16:18:06 | NULL        | NULL       | utf8_general_ci |     NULL |
   |         |
| stu_view      | NULL   |    NULL | NULL       | NULL |           NULL |
 NULL |            NULL |         NULL |      NULL |           NULL | NULL
          | NULL        | NULL       | NULL            |     NULL | NULL
   | VIEW    |
| t_depart_info | InnoDB |      10 | Compact    |    0 |              0 |
16384 |               0 |            0 |         0 |           NULL | 2015-08-23
 22:12:02 | NULL        | NULL       | utf8_general_ci |     NULL |
   |         |
| t_stu_info    | InnoDB |      10 | Compact    |    6 |           2730 |
16384 |               0 |            0 |         0 |              9 | 2015-08-23
 21:36:02 | NULL        | NULL       | utf8_general_ci |     NULL |
   |         |
| t_tea_info    | InnoDB |      10 | Compact    |    0 |              0 |
16384 |               0 |        16384 |         0 |              1 | 2015-08-23
 21:39:53 | NULL        | NULL       | utf8_general_ci |     NULL |
   |         |
+---------------+--------+---------+------------+------+----------------+-------
------+-----------------+--------------+-----------+----------------+-----------
----------+-------------+------------+-----------------+----------+-------------
---+---------+
5 rows in set (0.00 sec)

mysql>
登入後複製
相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板