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