mysql sql语句合并生成新表

create  table app_merge select * from (select id as cid,pid,category,'birds' from app_cate union all select cid+2159,pid+2159,category,'etsy' from app_etsy_cat_quchong) t


create  table app_merge as (select id as cid,pid,category,'birds' from app_cate union all select cid+2159,pid+2159,category,'etsy' from app_etsy_cat_quchong) t

你可能感兴趣的:(笔记)