In SQL Server 2008 you can insert multiple rows using a single SQL INSERT statement.
(在SQL Server 2008中,您可以使用单个SQL INSERT语句插入多行。)
INSERT INTO MyTable ( Column1, Column2 ) VALUES
( Value1, Value2 ), ( Value1, Value2 )
For reference to this have a look at MOC Course 2778A - Writing SQL Queries in SQL Server 2008.
(有关参考,请参阅MOC课程2778A - 在SQL Server 2008中编写SQL查询。)
For example:
(例如:)
INSERT INTO MyTable
( Column1, Column2, Column3 )
VALUES
('John', 123, 'Lloyds Office'),
('Jane', 124, 'Lloyds Office'),
('Billy', 125, 'London Office'),
('Miranda', 126, 'Bristol Office');
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…