您的位置:首页 > 数据库

数据库中批量插入数据的方法

2017-08-18 22:31 423 查看
If using SQL Server, 
SqlBulkCopy.WriteToServer(DataTable)


SqlBulkCopy.WriteToServer Method (DataTable)
Or also with SQL Server, you can write it to a .csv and use 
BULK INSERT


BULK INSERT (Transact-SQL)
If using MySQL, you could write it to a .csv and use 
LOAD DATA INFILE


LOAD DATA INFILE Syntax
If using Oracle, you can use the array binding feature of ODP.NET

Bulk Insert to Oracle using .NET
If SQLite:

How do I bulk insert with SQLite?
Faster bulk inserts in sqlite3?
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: