mysql将一张表的查询结果存到另一张表中
由于mysql不支持select into 方法,mysql怎样将一张表的查询结果存到另一张表中?
找了两个方法
第一种:
create table dust select * from student;//用于复制前未创建新表dust的情况下
第二种
insert into dust select * from student;//已经创建了新表dust的情况下
文章目录
关闭
由于mysql不支持select into 方法,mysql怎样将一张表的查询结果存到另一张表中?
找了两个方法
第一种:
create table dust select * from student;//用于复制前未创建新表dust的情况下
第二种
insert into dust select * from student;//已经创建了新表dust的情况下
版权声明:
作者:WaterBear
链接:https://l-t.top/2133.html
来源:雷霆运维
文章版权归作者所有,未经允许请勿转载。