如何从 SQL Server 2008 中的选择查询结果创建表 [英] How to create a table from select query result in SQL Server 2008
本文介绍了如何从 SQL Server 2008 中的选择查询结果创建表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从 SQL Server 中的选择查询结果创建一个表,我试过了
I want to create a table from select query result in SQL Server, I tried
create table temp AS select.....
但是我遇到了一个错误
关键字AS"附近的语法不正确
Incorrect syntax near the keyword 'AS'
推荐答案
在 SQL Server 2008 中使用以下语法从旧表创建新表
Use following syntax to create new table from old table in SQL server 2008
Select * into new_table from old_table
这篇关于如何从 SQL Server 2008 中的选择查询结果创建表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文