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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:34:47
Original
1100 people have browsed it

mysql搜索

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template