Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing csv using Datagrip (table with identity column)

Tags:

datagrip

How to import CSV file into SQL Server table with identity column using DataGrip.

More precisely, how to exclude the identity column during the import or force importing the identity column?

like image 223
Hamza Althunibat Avatar asked Jun 23 '26 21:06

Hamza Althunibat


1 Answers

Assume, you've got a table

create table test_identity_insert(

  x bigint primary key identity(1,1),

  y int
);
go

You need to change data mappings

Data Mapping

like image 192
Vasilii Chernov Avatar answered Jun 28 '26 23:06

Vasilii Chernov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!