奇怪还是我新手?这是一个简单的create table as select,导致SQL Server 2008中出现错误。
CREATE TABLE [SalesOrderHeader2]
AS
(SELECT *
FROM [AW].[sales].SalesOrderHeader)
错误:
Msg 156,Level 15,State 1,Line 2
关键字'附近的语法错误为'。
oracle中没有错误:
create table abc AS
select * from abc2
答案 0 :(得分:1)
SELECT * INTO New_Table
FROM YourTable