【问题标题】:Importing csv using Datagrip (table with identity column)使用 Datagrip 导入 csv(带有标识列的表)
【发布时间】:2016-10-08 04:55:51
【问题描述】:

如何使用 DataGrip 将 CSV 文件导入带有标识列的 SQL Server 表。

更准确地说,如何在导入时排除标识列或强制导入标识列?

【问题讨论】:

标签: datagrip


【解决方案1】:

假设你有一张桌子

create table test_identity_insert(

  x bigint primary key identity(1,1),

  y int
);
go

你需要change data mappings

【讨论】:

    【解决方案2】:

    在“导入:“file_Name.csv”格式”窗口的“列”选项卡上,单击“标识”列突出显示的垃圾桶图标。 (见screencap here,我目前没有允许插入图片的声誉。)

    另外,请参阅 DataGrip 中“导入:格式对话框”帮助页面的底部,或网络帮助 here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多