Home  >  Article  >  Database  >  搜索-请问 mysql里length与like不能一起用吗?

搜索-请问 mysql里length与like不能一起用吗?

WBOY
WBOYOriginal
2016-06-06 09:34:471051browse

mysql搜索

分开用的时候都是正常的,只要加上了like就会搜不出本该能搜出的数据
比如“10001”这个数据 用length(x = 5)可以搜索到,用like'%10%',也可以搜索到,但是两个组合在一起就没法搜索到了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn