mysql sql语句合并生成新表

来源:互联网 发布:网络监控安装教程 编辑:程序博客网 时间:2024/05/22 00:07

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

0 0
原创粉丝点击