Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Sindhura1
Contributor
Contributor

Load multiple csv files with different structures into postgre sql tables

I have csv files with different structures in my folder and I need to load them into target postgresql tables.

Can anyone please help me with this?​

Labels (2)
5 Replies
gjeremy1617088143

Hi, @Sindhura V S​ 

do you use a studio edition or an open source ?

Do you know how many different structures you have ?

Send me love and kudos

 

Sindhura1
Contributor
Contributor
Author

I use enterprise edition. I have 9 files with 9 different schema structures.​

gjeremy1617088143

In entreprise edition dynamic schema can be use to read csv with not defined structure but they have to had header

the only problem is you can't set key for database, if you just want to insert with an autoincrement it could works.

but you need to know in wich table you want to insert before i presume ?

Sindhura1
Contributor
Contributor
Author

I tried using dynamic schema but the column data types are not handled correctly.

gjeremy1617088143

maybe this article can help you :

it's a lot of code but it permit to reatribute dbtype from the database, the source is a database but it can also work with csv :

https://www.talend.com/blog/2019/11/11/migrate-data-between-databases-one-job-using-dynamic-schema/