I've already used a tMySQLRow component to execute several statements (configuring the connection with "allowMultiQueries=true"), but now I have a SQL file with different types of statements:
- Drop tables
- Create tables
- Create indexes
- Function declarations (set delimiter // create function xxxx... set delimiter ; )
- Truncate tables
- Insert into table select ....
There are many statements, and not sure the function declarations that work under mysql console, can be embedded in the tMySQLRow component.
Is there any way or tMySQL component like tMySQLRow able to execute a MySQL script (SQL text file)?
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema