首页 / 新闻资讯 / 正文
mysql如何将一张表的查询结果插入到另外一张表;
-- 复制并创建表createtable table_Bselect*from talbe_A;
或
INSERTINTO table_BSELECT*FROM table_A;
INSERTINTO table_B b(name,age)SELECT name,ageFROM table_A awhere a.id= b.id;
上一个:宠物猫疫苗多少钱一次啊(宠物猫疫苗多少钱一次啊)
下一个:SpringBoot常用拦截器(HandlerInterceptor,ClientHttpRequestInterceptor,RequestInterceptor)