mssql server 存储过程里,bulk insert table from '路径+文件&
时间:2020-10-31 14:15 作者:admin
动态语句,bulkinsert的from子句只能使用常量.
CREATEproctest
@fnvarchar(50)
as
declare@pathvarchar(100)
set@path='d:\'
exec('
bulkINSERTtableFROM'''+@path+@fn+'''
WITH
(
FIELDTERMINATOR='','',
ROWTERMINATOR=''\n''
)')
摘自CSDN
(责任编辑:admin)