Domanda

I tried searching in questions, but unable to find.

I need to run MYSQL LIKE statement on a column whose datatype is TEXT I am unable to do so, can anyone provide me sample query on it ?

tblTable Structure
===============
id int primary key
Subject Text

Now query is select * from tblTable where Subject Like '%ABC%'

Its not working, any help ?

È stato utile?

Soluzione

Try this:

SELECT * FROM `tblTable ` WHERE MATCH(Subject) AGAINST('ABC' IN BOOLEAN MODE)

I think this will work for you

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top