Question

I have a column in MySQL which has the datatype BLOB. I am using Crystal Reports for some reports.

My problem is BLOB column will show blank data if it contains data other than a picture.

The data I am getting from DB is text only. So I want to convert the BLOB column to some other datatype which will occupy more data like BLOB object.

Please suggest what datatype I can conevrt.

I tried this query but it is not working.

SELECT CAST(key_initiatives AS MEDIUMTEXT) key_init FROM OBJSETTING_FOCUS_ON_CUSTOMER
Was it helpful?

Solution

try this,

SELECT CAST(key_initiatives AS CHAR(1000) CHARACTER SET utf8 )  AS key_init FROM OBJSETTING_FOCUS_ON_CUSTOMER
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top