SELECT * FROM wm_app_stats where email like '%skyzaizhe@126.com%'
这种会查询出过多数据比如sskyzaizhe@126.com,前后多的字符依然查出来,
SELECT * FROM wm_app_stats where email in ('skyzaizhe@126.com')
只查询email只有'skyzaizhe@126.com'这个值,这种格式就会查询不出来,skyzaizhe@126.com,q25@1.com,
只能用find_in_set函数
SELECT * FROM wm_app_stats where find_in_set('skyzaizhe@126.com', email);
skyzaizhe@126.com
skyzaizhe@126.com,q25@1.com
这两种格式数据都可以查询出来
字符串函数 find_in_set(); mysql 多个字符串 找出其中一个,Mysql查找如何判断字段是否包含某个字符串
相关推荐
mongodb在window安装失败提示报错 The installer has encountered an unexpected errorinstalling this package, This may indicate a problem withthis package. The error code is 2503.
mysql工具软件Navicat快捷键及使用技巧
做mysql数据库字典,查出表的表名,字段名,数据类型,注释,默认值
常用mysql语句(一)
Mysql错误:Ignoring query to other database解决方法-缺少-uroot中的-u
linux mysql查看数据库大小