Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

load mysql table with binary field

Hi, all,

May I know how to correctly load mysql table with binary column?

I need to use a table from a database implemented by a college, and found that one column is binary data.

After a normal "LOAD", this binary column is empty for some rows. Have no idea why. Dose any one knows about this?

Though I solved the problem as the reply below, but I do not understand why only some rows get "empty" data. It seems not null, as I use isNull() condition to check the value, it still get an empty column.

Thanks very much

Zhihong

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi, all,

I solved the problem by first load binary in mysql load using HEX() function like this:

LOAD ...;

SQL SELECT

     HEX(Id) as Id,

     Name,

FROM table01;

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi, all,

I solved the problem by first load binary in mysql load using HEX() function like this:

LOAD ...;

SQL SELECT

     HEX(Id) as Id,

     Name,

FROM table01;