सिंटैक्स
select * from yourTableName where yourColumnName like concat('%', yourValue, '%');
उदाहरण
mysql> create table demo48 (id int not null auto_increment primary key, name varchar(20));
mysql> insert into demo48(name) values('John Smith'), ('John Doe'), ('Adam Smith'), ('David Miller'), ('Chris Brown');
"Smith" वाले नाम खोजना
mysql> select * from demo48 where name like concat('%','Smith','%');
+----+------------+ | id | name | +----+------------+ | 1 | John Smith | | 3 | Adam Smith | +----+------------+
लाभ: पैरामीटराइज़्ड क्वेरी में मान डायनामिकली जोड़ने में आसान।