Home  >  Article  >  Backend Development  >  能不能查寻数据库 条件是一个字段包含某一个数 并且不包含另外一个数

能不能查寻数据库 条件是一个字段包含某一个数 并且不包含另外一个数

WBOY
WBOYOriginal
2016-06-13 10:52:07963browse

能不能查找数据库 条件是一个字段包含某一个数 并且不包含另外一个数
能不能查找数据库 条件是一个字段包含某一个数 并且不包含另外一个数\
,条件怎么写

------解决方案--------------------
例子
select * from tt where name like '%b%' and name not like '%s%';
------解决方案--------------------

探讨

例子
select * from tt where name like '%b%' and name not like '%s%';
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