<legend id='pS44U'><style id='pS44U'><dir id='pS44U'><q id='pS44U'></q></dir></style></legend>
        <i id='pS44U'><tr id='pS44U'><dt id='pS44U'><q id='pS44U'><span id='pS44U'><b id='pS44U'><form id='pS44U'><ins id='pS44U'></ins><ul id='pS44U'></ul><sub id='pS44U'></sub></form><legend id='pS44U'></legend><bdo id='pS44U'><pre id='pS44U'><center id='pS44U'></center></pre></bdo></b><th id='pS44U'></th></span></q></dt></tr></i><div id='pS44U'><tfoot id='pS44U'></tfoot><dl id='pS44U'><fieldset id='pS44U'></fieldset></dl></div>

      1. <small id='pS44U'></small><noframes id='pS44U'>

          <bdo id='pS44U'></bdo><ul id='pS44U'></ul>
      2. <tfoot id='pS44U'></tfoot>

        SQL Server 转义下划线

        SQL Server Escape an Underscore(SQL Server 转义下划线)
            <tfoot id='KyrBy'></tfoot>
              <bdo id='KyrBy'></bdo><ul id='KyrBy'></ul>

                <small id='KyrBy'></small><noframes id='KyrBy'>

              1. <i id='KyrBy'><tr id='KyrBy'><dt id='KyrBy'><q id='KyrBy'><span id='KyrBy'><b id='KyrBy'><form id='KyrBy'><ins id='KyrBy'></ins><ul id='KyrBy'></ul><sub id='KyrBy'></sub></form><legend id='KyrBy'></legend><bdo id='KyrBy'><pre id='KyrBy'><center id='KyrBy'></center></pre></bdo></b><th id='KyrBy'></th></span></q></dt></tr></i><div id='KyrBy'><tfoot id='KyrBy'></tfoot><dl id='KyrBy'><fieldset id='KyrBy'></fieldset></dl></div>
                  <tbody id='KyrBy'></tbody>

                <legend id='KyrBy'><style id='KyrBy'><dir id='KyrBy'><q id='KyrBy'></q></dir></style></legend>

                  本文介绍了SQL Server 转义下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何转义下划线字符?

                  我正在编写类似于以下 where 子句的内容,并希望能够找到末尾带有 _d 的实际条目.

                  I am writing something like the following where clause and want to be able to find actual entries with _d at the end.

                  Where Username Like '%_d'
                  

                  推荐答案

                  LIKE 的 T-SQL 参考:

                  您可以使用通配符模式匹配字符作为文字字符.要将通配符用作文字字符,请将通配符括在方括号中.下表显示了使用 LIKE 关键字和 [ ] 通配符的几个示例.

                  You can use the wildcard pattern matching characters as literal characters. To use a wildcard character as a literal character, enclose the wildcard character in brackets. The following table shows several examples of using the LIKE keyword and the [ ] wildcard characters.

                  对于您的情况:

                  ... LIKE '%[_]d'
                  

                  这篇关于SQL Server 转义下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Select n random rows from SQL Server table(从 SQL Server 表中随机选择 n 行)
                  SQL query to select dates between two dates(用于选择两个日期之间的日期的 SQL 查询)
                  How can I delete using INNER JOIN with SQL Server?(如何在 SQL Server 中使用 INNER JOIN 进行删除?)
                  Table Naming Dilemma: Singular vs. Plural Names(表命名困境:单数与复数名称)
                  INSERT statement conflicted with the FOREIGN KEY constraint - SQL Server(INSERT 语句与 FOREIGN KEY 约束冲突 - SQL Server)
                  Optimal way to concatenate/aggregate strings(连接/聚合字符串的最佳方式)
                  <legend id='Sy52i'><style id='Sy52i'><dir id='Sy52i'><q id='Sy52i'></q></dir></style></legend>
                • <i id='Sy52i'><tr id='Sy52i'><dt id='Sy52i'><q id='Sy52i'><span id='Sy52i'><b id='Sy52i'><form id='Sy52i'><ins id='Sy52i'></ins><ul id='Sy52i'></ul><sub id='Sy52i'></sub></form><legend id='Sy52i'></legend><bdo id='Sy52i'><pre id='Sy52i'><center id='Sy52i'></center></pre></bdo></b><th id='Sy52i'></th></span></q></dt></tr></i><div id='Sy52i'><tfoot id='Sy52i'></tfoot><dl id='Sy52i'><fieldset id='Sy52i'></fieldset></dl></div>

                      <bdo id='Sy52i'></bdo><ul id='Sy52i'></ul>

                        • <small id='Sy52i'></small><noframes id='Sy52i'>

                          <tfoot id='Sy52i'></tfoot>

                            <tbody id='Sy52i'></tbody>