我一直遇到这个错误:
解析错误在第1行,第1列:'BULK' 附近的语法不正确。
以下是我的文本。 我现在正在使用包含两行正确格式的测试文件,以排除其引起问题的可能性。
create table #tabled1
(
vehicleid bigint,
speed decimal(9,6),
latitude decimal(9,6),
longitude decimal(9,6),
direction smallint,
gpsquality tinyint
)
GO
BULK INSERT #tabled1
FROM 'C:\Users\michael.mccarthy\documents\test.txt'
WITH (
FIELDTERMINATOR = '/t',
rowtERMINATOR = '/n',
KEEPNULLS
);
GO
BULK INSERT #tabled1
- 在表名之前需要加上#
符号! - marc_s