sqlserver insert into select......into... from

 一、insert into 

insert into tablename(列1,列2,列3)

select  字段1,字段2,字段2  

from 表名


tablename不能是临时表


二、select......into...  from

select

字段1,

字段2,

字段3

into

tablename

from 表名


tablename可以是临时表

相关文章

SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_n...
if not exists(select name from syscolumns where name=&am...
select a.*,pano=a.pa_no,b.pa_name,f.dp_name,e.fw_state_n...
要在 SQL Server 2019 中设置定时自动重启,可以使用 Window...
您收到的错误消息表明数据库 'EastRiver' 的...
首先我需要查询出需要使用SQL Server Profiler跟踪的数据库标...