I am trying to load csv files into monetdb table(s) with auto increment PK/Id columns using copy into <table> from file...
.
- table has auto increment PK column.
- table has more columns than incoming csv files.
- csv file doesnt have Pk/Id column.
Is there a way to specify columns while loading data? something like
Copy into <tableName>( col2, col2,...) from file ...
?
For (1), the work around I have found is to drop the auto increment pk/id column and alter table later. For (2) load file into a temp table and insert/update actual table later. Though its getting cumbersome, not to mention overhead of insert/update instead of bulk load.
Any help/pointer would be really appreciated.
Regards