SqlServer contains
时间: 2023-10-22 19:03:49 浏览: 152
SqlServer的CONTAINS是用于在条件语句中搜索包含指定内容的文本列的函数。其语法是CONTAINS(fullText_column, 'search contents')。通过使用CONTAINS函数,可以在SqlServer数据库中的指定列中进行全文搜索,并检索包含指定内容的记录。例如,如果我们有一个名为Titles的表,其中包含Title列,我们可以使用以下SQL语句查询包含"secret"或"computer"内容的记录:
SELECT * FROM Titles WHERE CONTAINS(Title, 'secret OR computer')。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Data Science with SQL Server](https://download.csdn.net/download/wrong1/10337662)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Sqlserver中Contains谓词使用](https://blog.csdn.net/qq_42581849/article/details/128112272)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [FREETEXT FREETEXTTABLE CONTAINS CONTAINSTABLE](https://blog.csdn.net/weixin_30706691/article/details/94897267)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文