如何使用DataGrip将CSV文件导入到带有标识列的SQL Server表中。
更准确地说,如何在导入时排除identity列或强制导入identity列?
发布于 2020-04-07 00:46:43
假设你有一张桌子
create table test_identity_insert(
x bigint primary key identity(1,1),
y int
);
go

发布于 2016-12-15 09:11:05
在“导入:"file_Name.csv”Format“窗口的”Columns“选项卡上,单击垃圾桶图标,并突出显示标识列。(请参阅screencap here,我目前没有允许插入图像的声誉。)
此外,请参阅DataGrip或web帮助here中“导入:格式对话框”帮助页面的底部。
https://stackoverflow.com/questions/39928809
复制相似问题