Convert a Blob field to a Text field
Posted in 2009
Topics: General Discussion
Hi, I need to be able to check data that is stored in the first 100 characters of a Blob data field, using Informix SQL. Is there any way using SQL code, to extract say the first 100 characters of a Blob field and put it into a Text field ? Many thanks ... Glen
Glen You can't do it via SQL alone. An application program (esqlc, jdbc) calling some APIs is need to accomplish the job you wanted. If you just want to search some some key words. A text search blade (ETX, basic text) may be helpful. Regards, --- On Thu, 4/23/09, GLEN WENZEL <glen_wenzel@cpr.ca> wrote: > From: GLEN WENZEL <glen_wenzel@cpr.ca> > Subject: Convert a Blob field to a Text field [15609] > To: ids@iiug.org > Date: Thursday, April 23, 2009, 4:07 PM > Hi, > > I need to be able to check data that is stored in the first > 100 characters of > a Blob data field, using Informix SQL. > > Is there any way using SQL code, to extract say the first > 100 characters of a > Blob field and put it into a Text field ? Many thanks ... > > Glen > > > ******************************************************************************* > > Forum Note: Use "Reply" to post a response in the > discussion forum. > >