是否有方法编写sql查询,查找字段值是给定字符串的子字符串的所有行。sinan unurselect * from names where Name is a substring of "who is rohit"; // to getfirst row
select * from names where Nickname is a substring of "who is rohitnick"; /
在MySQL中使用LIKE是很常见的。我们这样使用它:WHERE field LIKE '%substring%'。其中,我们有一个子字符串,而字段有完整的字符串。但我需要的是相反的东西。我在字段中有子字符串。所以,我想要包含字符串的子字符串的那一行。-------------+-------------------
我有一个来自user:Tell me about