Loading files automation using Load_data
Date: August 06, 2012 12:46AM
I want to load more than 100 CSV files in every week to database. For the same i am using LOAD DATA functionality of MYSQL.
To automate it. I am extracting file name & related path in csv file using scripting & loading to the table. Now i have all csv files names & path in my database table.
I tried to create a prepared statement for LOAD DATA, where i was concatenating file name & file path to LOAD DATA statement in procedure using cursor to dynamically execute it.
But here LOAD DATA is not allowed in procedures.
Can anyone please help me to do so????
Thanking you in advance.
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.