Get the App
SLTechnology News&Howtos  ›  Database  › 

How to ignore index hints in SQLSERVER

Shulou Source: shulou.com Published: 2022-05-31 18:58:24 10月25日 Update

Today, I will talk to you about how to ignore index hints in SQLSERVER, many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

When we want a query to take advantage of an index, we usually add an index hint to the query, like this

The copy code is as follows: SELECT id,name from TB with (index (IX_xttrace_bal)) where bal

Tags: Index hint statement code trace flag query content performance data time environment test not only reason database more sometimes server knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Xiaomi Huawei Shulou Tech Info Docker