如何使用Query将所选记录插入到sqlserver 2005中的新表中 [英] How to Insert Selected records into new table in sqlserver 2005 using Query

查看:77
本文介绍了如何使用Query将所选记录插入到sqlserver 2005中的新表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨frnds,



我正在使用SQL Server 2005.



我想要显示已选中表中的记录



所以,我已经使用查询执行了数据



选择*来自EquipmentType ='CPU'的设备.....这成功执行。



但这些执行的记录我想转移到新表使用QUERY。



请帮帮我。



谢谢

解决方案

< blockquote>试试这个:

  INSERT   INTO  newtable 
选择 * 来自设备其中 EquipmentType = ' CPU'



阅读更多: sql_insert_into _select [ ^ ]


Hi frnds,

Am working on SQL Server 2005.

I want to display selected records from the table

So,I have executed the data using the Query as

Select * from Equipments where EquipmentType='CPU'.....This executes successfully.

But these executed records I want to move to new table USING QUERY.

Please can you help me.

Thanks

解决方案

Try this:

INSERT INTO newtable
Select * from Equipments where EquipmentType='CPU'


Read More: sql_insert_into_select[^]


这篇关于如何使用Query将所选记录插入到sqlserver 2005中的新表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆