Question

I have a database in Ingres 9.2.0 that contains a long varchar column. Is there any way that I can search this column for a specific string and only return the rows that contain have that string in the column.

I tried using like as follows

select * from table
where col like '%abc%'

but I get the following error

Function 'like' is not defined for arguments of type 'long varchar' and 'varchar'. Explicitly convert its arguments to the desired type(s).


I was able to resolve this with the following query

select * from table WHERE position('abc' in col) > 0

Was it helpful?

Solution

Support for LIKE against LONG VARCHAR was added to Ingres 9.3.0 (project page - If you have an earlier release this won't work.See the feature list for all 9.3 changes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top