charging data from table to table

Highlighted
Six Stars

charging data from table to table

Hello,

I want to load data from a table where the structure is defined to a table with the same fields which are all of type VARCHAR without going through a conversion of each field in tmap.

PS the database is MYSQL

 

Best Regards

 


Accepted Solutions
Employee

Re: charging data from table to table

Hi,

 

    If my understanding about your query is correct, you are trying to change the data type of the columns in between your flow. There are two options in front of you.

 

a) While reading the data from source table, you can read the data as String data type itself.

b) Use tConvertType component to convert the data type in between your flow.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

View solution in original post


All Replies
Employee

Re: charging data from table to table

Hi,

 

    Could you please share more details with some sample record?

 

Warm Regards,

 

Nikhil Thampi

Six Stars

Re: charging data from table to table

Hello,

 

I want to load the data without format or data type integrity constraints.
output is string type.

Capture2.PNG

Six Stars

Re: charging data from table to table

Are you talking about the first column int to string 

If yes

String.valueOf(col_name)

Employee

Re: charging data from table to table

Hi,

 

    If my understanding about your query is correct, you are trying to change the data type of the columns in between your flow. There are two options in front of you.

 

a) While reading the data from source table, you can read the data as String data type itself.

b) Use tConvertType component to convert the data type in between your flow.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

View solution in original post

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog