mysql 从一个数据库数据表插入到另一个数据库数据表
insert into test.a (title) select title from dedes.dedes_co_htmls where aid = 6;
insert into test.a (title) select newstitle from tab.news where news_id = 88;
数据库数据迁移与插入技巧
本文将介绍如何使用 SQL 语句将一个数据库中的数据表数据插入到另一个数据库的数据表中,具体通过示例展示了使用 INSERT INTO 和 SELECT 语句进行数据迁移的操作。
insert into test.a (title) select title from dedes.dedes_co_htmls where aid = 6;
insert into test.a (title) select newstitle from tab.news where news_id = 88;

被折叠的 条评论
为什么被折叠?