Mysql中怎么查看创建表时用的哪种引擎以及如何修改引擎

    技术2022-07-11  122

    1.查看创建表时用的哪种引擎: show table status from 数据库名 where name=‘表名’;

    show table status from lying where name='emp7';

    2.修改引擎为myisam alter table 表名 engine=myisam;

    alter table emp7 engine=myisam;

    注:查看整个数据库所有表使用的引擎方法: show table status from 数据库名;

    show table status from lying;
    Processed: 0.009, SQL: 9