【发布时间】:2017-07-13 16:15:22
【问题描述】:
下面是代码:
CREATE TABLE maintable (
Name varchar(10),
phone_number numeric(10)
);
INSERT INTO maintable
VALUES ("Max", 9896995632);
SELECT
*
FROM maintable;
create table #TempTable as
maintable;
【问题讨论】:
-
你应该把
"Max"改成'Max' -
SQL Server 的语法是:
SELECT * INTO #TempTable FROM MainTable
标签: mysql sql sql-server sql-server-2008