mysql将一张表的查询结果存到另一张表中

来源:百度知道 编辑:UC知道 时间:2024/06/04 11:11:28
select ID into result from probe where overlap='YES';
它总报错说 undeclared variable:result;
result这个表我已经建了
什么问题啊??

网上说mysql不支持select into
找了两个方法
answer 01:
create table dust select * from student;//用于复制前未创建新表dust的情况下
answer 02:
insert into dust select * from student;//已经创建了新表dust的情况下