将CSV文件导入SQLServer
.csv
BULK INSERT
问题:
,
""
Name,Class,Subject,ExamDate,Mark,Description Prabhat,4,Math,2/10/2013,25,Test data for prabhat.Murari,5,Science,2/11/2013,24,"Test data for his's test, where we can test 2nd ROW, Test."sanjay,4,Science,,25,Test Only.
BULK INSERT SchoolsTempFROM 'C:\CSVData\Schools.csv'WITH( FIRSTROW = 2, FIELDTERMINATOR = ',', --CSV field delimiter ROWTERMINATOR = '\n', --Use to shift the control to next row TABLOCK)
慕田峪9158850
梦里花落0921
相关分类