Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Data changing on load

I am loading barcode information from a mySQL database. The field is set up as a varchar(13). I have noticed that once the data is loaded into QlikView, several barcodes that have leading zeros in mySQL no longer have them in QlikView. (Ex: original barcode in mySQL=047357; this barcode in Qlikview=47357). Is there a reason why I am losing this leading zero and is there any way to prevent this going forward?

Any information would be greatly appreciated!

1 Solution

Accepted Solutions
biester
Specialist
Specialist

Use the TEXT() function in the LOAD statement, NOT in the SQL statement.

Rgds,
Joachim

View solution in original post

4 Replies
prieper
Master II
Master II

Please use the TEXT()-function, this should do.

Peter

Not applicable
Author

Peter,

Thanks for your response. I have tried the TEXT() function and get a SQL error each time. Any other suggestions?

biester
Specialist
Specialist

Use the TEXT() function in the LOAD statement, NOT in the SQL statement.

Rgds,
Joachim

Not applicable
Author

Thank you Joachim!