类型:转载 责任编辑:asp 日期:2007/03/01
我在程序运行时生成一个临时表temp_table,其表结构与table相同,然后需要读出表table中的部分数据插入到temp_table中使用,请问这个操作有什么简单的办法吗?
推荐阅读
select * into temp_table from table where ...
select * into temp_table from table
where 你要读出部分记录的条件
如果你已经先建立了临时表,那么
insert into temp_table
select * from table
where 你要读出部分记录的条件
wrong,
insert into temp_table select * from table where..
insert #temp_table
select * from table where ..
select * into temp_table from table where ...