Py学习  »  DATABASE

mysql:如何在字符串列表中查找if列值

Lotfi • 5 年前 • 1276 次点击  

mysql:如何查找列表中的列值是否包含多个字符串。 expl:t.name=测试

Select * 
from table t 
where ( t.name Like [‘test tuto1’, ‘test tuto2’, ‘test tuto3’, ‘teeeest’....]

我必须用t得到*的结果。name包含前3个示例结果

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/43825
 
1276 次点击  
文章 [ 1 ]  |  最新文章 5 年前