在SQL Server中,可以使用以下方法来实现批量插入数据:
INSERT INTO table_name (column1, column2, column3)
VALUES (value1a, value2a, value3a),
(value1b, value2b, value3b),
(value1c, value2c, value3c);
INSERT INTO table_name (column1, column2, column3)
SELECT columnA, columnB, columnC
FROM other_table;
BULK INSERT table_name
FROM 'C:\data\datafile.csv'
WITH (FIELDTERMINATOR = ',', ROWTERMINATOR = '\n');
bcp database_name.dbo.table_name in datafile.csv -c -t, -r\n -S server_name -U username -P password
这些方法可以帮助实现在SQL Server中进行批量插入数据的操作。