简体   繁体   English

使用python在mysqltable中进行字符串搜索

[英]String search in mysqltable using python

I want to search the matching strings from a mysql table. 我想从mysql表中搜索匹配的字符串。 The search string is not a correct sentence, its only a part of the sentence.Any one can help me.? 搜索字符串不是正确的句子,它只是句子的一部分。任何人都可以帮助我。

Thanks in advance... 提前致谢...

Nimmy 尼米

Something like this? 像这样吗

SELECT * FROM table WHERE string LIKE '%substring%'

http://dev.mysql.com/doc/refman/5.0/en/pattern-matching.html http://dev.mysql.com/doc/refman/5.0/en/pattern-matching.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM