Get the App
SLTechnology News&Howtos  ›  Database  › 

How to use BULK INSERT to import data SQLSERVER in bulk

Shulou Source: shulou.com Published: 2022-05-31 11:32:58 11月13日 Update

This article is about how to use BULK INSERT to import SQL SERVER data in bulk. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

The code is as follows:

CREATE TABLE [dbo]. [course]( [id] [int] NULL, [name] [nvarchar](50) NULL, [CourseType] [nvarchar](50) NULL, [Course] [float] NULL )

Import data: Store the following data as text files or SQL files 2, Li Gang, Chinese, 89;3, Li Gang, Mathematics, 79;3, Li Gang, English, 69;4, Li Gang, Chemistry, 89 Import statements:

BULK INSERT dbo.course FROM 'd:\course.txt ' WITH ( FIELDTERMINATOR =',', ROWTERMINATOR =';' ) Thank you for reading! About "how to use BULK INSERT to import large quantities of data SQLSERVER" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

Tags: Data Li Gang mass content files more articles good practical code chemistry mathematics text articles look knowledge sentences Chinese noodles English Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information OPPO Reno Shulou Tech Info Huawei MariaDB