SQL Server 读取CSV中的数据

时间:2015-03-30 22:54:31   收藏:0   阅读:369

测试:

技术分享

Script:

create table #Test
(
    Name nvarchar(10),
    Age int,
    T nvarchar(10)
)

BULK INSERT #Test
From I:\AAA.csv
with(
    fieldterminator = ,,
    rowterminator = \n
)

select * from #Test

drop table #Test

Result:

Name Age T
TestA 13 Aug
TestB 14 App
TestC 15 Jus

原文:http://www.cnblogs.com/chenyongblog/p/4379283.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!