如何把查询到的数据插入到临时表

2025-03-25 17:31:57
推荐回答(1个)
回答1:

比如临时表叫temp,你要查询的语句为select * from 表名 where id=1。 如果temp表存在: insert into temp select * from 表名 where id=1;commit;如果temp表不存在 create table temp as insert into temp select * from 表名 where id=1;注意...