Whether to search for a database condition is that a field contains a certain number and does not contain another number. whether to search for a database condition is that a field contains a certain number and does not contain another number, how to write conditions ------ solution ------------------ example select * fromttwherenamelike % B % andnamenotlike % s %; ------ solve whether the database condition is that a field contains a certain number and does not contain another number
Whether the database can be searched is based on the condition that a field contains a certain number and does not contain another number \
, How to write conditions
------ Solution --------------------
Example
Select * from tt where name like '% B %' and name not like '% s % ';
------ Solution --------------------
Discussion
Example
Select * from tt where name like '% B %' and name not like '% s % ';