Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Issue inserting non-Latin characters in a MySQL database

Hi, 

 

I have an sql query like

 

Select * from table where message LIKE '%\'. This run well in oracle database. But when I put this query in talend tDBInput, it is not taking '\'. How do I make this query work in talend?

 

Can anyone help me out.

 

Thanks in advance,

Meghana.

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

This is because your SQL is in a Java String. This is why it needs "" around it. In Java the \ is an escape character. In order to use it as just a backslash, you need to escape it like below...

 

"Select * from table where message LIKE '%\\'"

View solution in original post

2 Replies
Anonymous
Not applicable
Author

This is because your SQL is in a Java String. This is why it needs "" around it. In Java the \ is an escape character. In order to use it as just a backslash, you need to escape it like below...

 

"Select * from table where message LIKE '%\\'"
Anonymous
Not applicable
Author

Thanks..It worked.