[英]Microsoft SQL Server Error: “Incorrect syntax near keyword Select”
Unsure what syntax the error is referring to at this statement :- 不确定此语句所指的错误语法:
Use MyDatabase
CREATE TABLE TestTable
AS (SELECT * FROM dbo.MyTable);
Any help is appreciated! 任何帮助表示赞赏!
The dbo
suggests that you are using SQL Server. dbo
建议您使用的是SQL Server。 The syntax error is that this syntax is not supported. 语法错误是不支持此语法。
The equivalent syntax in SQL Server is: SQL Server中的等效语法为:
SELECT *
INTO TestTable
FROM dbo.MyTable;
You need to use like below. 您需要使用如下所示。 The one you are using is Oracle syntax.
您正在使用的是Oracle语法。
Use MyDatabase
Go
SELECT * INTO TestTable FROM dbo.MyTable
GO
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.