sqlserver模糊查询不包含
时间: 2023-08-15 16:08:03 浏览: 155
您好!针对您的问题,您可以使用 NOT LIKE 操作符实现 SQL Server 的模糊查询不包含某个字符串的功能,示例如下:
```
SELECT * FROM table_name WHERE column_name NOT LIKE '%search_string%';
```
其中,table_name 是您要查询的表名,column_name 是您要进行模糊查询的列名,search_string 是您要排除的字符串。该语句将返回不包含 search_string 的所有行。
希望能够帮助到您!如果您还有其他问题,请随时提出。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)