mysql 獲取所有表定義


SELECT
  table_name    AS  `表名`,
  table_type    AS  `類型`,
  engine        AS  `引擎`,
  VERSION     AS  `版本`,
  TABLE_COLLATION AS `字符集`
FROM
  information_schema.tables
WHERE
  table_schema = 'test'
ORDER BY
  table_name DESC;



記錄一下


另外可以用

desc tablename

得到表的所有字段信息



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章