mysql查询包含字符串(模糊查询)
生活随笔
收集整理的這篇文章主要介紹了
mysql查询包含字符串(模糊查询)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
mysql查詢包含字符串更高效率的方法一、LOCATE語句SELECT `column` from `table` where locate(‘keyword’, `condition`)>0二、或是 locate 的別名 positionSELECT `column` from `table` where position(‘keyword’ IN `condition`)三、INSTR語句SELECT `column` from `table` where instr(`condition`, ‘keyword’ )>0或者使用find_in_set函數
總結
以上是生活随笔為你收集整理的mysql查询包含字符串(模糊查询)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php findbysql,hibern
- 下一篇: 用友u8服务器优化,用友U8v10.1运