3

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

Stina
  • 509
  • 1
  • 6
  • 19

1 Answers1

3

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.

grantc
  • 1,693
  • 12
  • 13