FIND_IN_SET() फ़ंक्शन
FIND_IN_SET(str, strlist) कॉमा-सेपरेटेड सूची में स्ट्रिंग की स्थिति लौटाता है (1-आधारित); नहीं मिलने पर 0।
उदाहरण
mysql> create table demo73 (interest_id varchar(100), interest_name varchar(100));
mysql> insert into demo73 values('100,101,103,105','SSC'), ('105,103,1005,1003,104','Computer'), ('110,105,104,111','Novel');
संख्या 103 खोजना
mysql> select * from demo73 where find_in_set("103", interest_id) > 0;
+-----------------------+---------------+ | interest_id | interest_name | +-----------------------+---------------+ | 100,101,103,105 | SSC | | 105,103,1005,1003,104 | Computer | +-----------------------+---------------+
लाभ LIKE पर: सटीक टोकन मिलान (103, 1003 से अलग)।