[英]Create table from a table in SQL Server
Below is the query I tried to execute in SQL Server:以下是我尝试在 SQL 服务器中执行的查询:
CREATE TABLE List
AS
(SELECT * FROM counts)
I get this error:我收到此错误:
Msg 102, Level 15, State 1, Line 1
消息 102,第 15 级,State 1,第 1 行
Incorrect syntax near '(''(' 附近的语法不正确
I did some research on google to understand and isolate the error, but, failed to do so.我对谷歌进行了一些研究以了解和隔离错误,但是没有这样做。 Could anyone please help me understand the error.
谁能帮我理解错误。 Thank you
谢谢
SQL-Server's syntax to create a table from a query is by adding an into
clause: SQL-Server 从查询创建表的语法是添加一个
into
子句:
SELECT *
INTO list
FROM counts
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.