如何插入多行而不重复语句的“InsertIndbo.Blah”部分?
INSERT INTO dbo.MyTable (ID, Name)VALUES (123, 'Timmy'), (124, 'Jonny'), (125, 'Sally')
DECLARE @blah TABLE( ID INT NOT NULL PRIMARY KEY, Name VARCHAR(100) NOT NULL)INSERT INTO @blah (ID, Name) VALUES (123, 'Timmy') VALUES (124, 'Jonny') VALUES (125, 'Sally')SELECT * FROM @blah
Incorrect syntax near the keyword 'VALUES'.
紫衣仙女
蝴蝶刀刀
扬帆大鱼
相关分类