create table aa as select * from bb where id = -1
    创建一个与bb表结构相同的aa表。

    create table aa as select * from bb limit 3
    创建一个与bb表结构相同的aa表,并从bb表中复制3条记录插入到aa表中。

    弊端,不能将原表中的default value也一同迁移过来


    — 创建表,结构同 table
    CREATE TABLE table_new LIKE table;