mysql 查看表信息

  • desc 表名;

    查看表结构信息

  • show create table 表名;

    查询建表详细信息

  • select COLUMN_NAME,COLUMN_TYPE,COLUMN_COMMENT from information_schema.columns where table_name='表名';

    查看表字段注释

  • show tables like '%tour%';

    模糊查询表名中含有 "tour" 的表

原文地址:https://www.cnblogs.com/kimbo/p/7065516.html