我正在使用Microsoft SQL Server Management Studio,我想运行以下查询将值输入到临时表中以便以后使用:
CREATE TABLE #temptable
(colnumber varchar(15), dispcode varchar(10))
INSERT INTO #temptable (colnumber, dispcode)
VALUES
('col5', '811'),
('col6', '817'),
('col7', '823'),
('col8', '825');
运行时出现以下错误:
Msg 102,Level 15,State 1,Line 50
附近有错误的语法。
这指向了这一行:("col5","811"),
有没有人能帮我识别这里的问题?
INSERT
的能力,它不适用于早期版本。 - marc_s