<bdo id='nasJx'></bdo><ul id='nasJx'></ul>
  1. <tfoot id='nasJx'></tfoot>

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

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

      <legend id='nasJx'><style id='nasJx'><dir id='nasJx'><q id='nasJx'></q></dir></style></legend>
    1. MySQL Regexp 是否支持 Unicode 匹配

      Does MySQL Regexp support Unicode matching(MySQL Regexp 是否支持 Unicode 匹配)

      • <legend id='ga8mp'><style id='ga8mp'><dir id='ga8mp'><q id='ga8mp'></q></dir></style></legend>
            <tbody id='ga8mp'></tbody>

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

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

                <bdo id='ga8mp'></bdo><ul id='ga8mp'></ul>
              • 本文介绍了MySQL Regexp 是否支持 Unicode 匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                有谁知道Mysql的regexp是否支持unicode?我一直在做一些研究,大多数博客等似乎表明存在问题或不受支持.我想知道最好使用 LIKE 进行 unicode 模式匹配,使用 regexp 进行 ASCII 增强模式匹配吗?

                我喜欢能够在字符串的开头或结尾搜索匹配项的想法,但是如果 regexp 不支持 unicode,那么如果我的文本是 unicode,这可能会很困难.

                Does anyone know if Mysql's regexp supports unicode? I've been doing some research and the majority of blogs etc. seem to indicate that there is a problem or its not supported. I'm wondering then is it best to use LIKE for unicode pattern matching and regexp for ASCII enhanced pattern matching?

                I Like the idea of being able to search for matches at the beginning or end of a string, but if regexp doesn't support unicode then this could be difficult if my text is unicode.

                推荐答案

                有谁知道Mysql的regexp是否支持unicode?我一直在做一些研究,大多数博客等似乎都表明存在问题或不支持.

                Does anyone know if Mysql's regexp supports unicode? I've been doing some research and the majority of blogs etc. seem to indicate that there is a problem or its not supported.

                如正则表达式所述:

                REGEXPRLIKE 运算符以字节方式工作,因此它们不是多字节安全的,可能会使用多字节字符集产生意外结果.此外,这些运算符按字节值比较字符,即使给定的排序规则将它们视为相等,重音字符也可能不相等.

                Warning

                The REGEXP and RLIKE operators work in byte-wise fashion, so they are not multi-byte safe and may produce unexpected results with multi-byte character sets. In addition, these operators compare characters by their byte values and accented characters may not compare as equal even if a given collation treats them as equal.

              • 我想知道最好使用 LIKE 进行 unicode 模式匹配,使用 regexp 进行 ASCII 增强模式匹配吗?

                I'm wondering then is it best to use LIKE for unicode pattern matching and regexp for ASCII enhanced pattern matching?

                是的,那最好.

                我喜欢能够在字符串的开头或结尾搜索匹配项的想法,但如果 regexp 不支持 unicode,那么如果我的文本是 unicode,这可能会很困难.

                I Like the idea of being able to search for matches at the beginning or end of a string, but if regexp doesn't support unicode then this could be difficult if my text is unicode.

                也可以使用 LIKE 做到这一点:

                One can do that with LIKE too:

                WHERE foo LIKE 'bar%'
                

                还有:

                WHERE foo LIKE '%bar'
                

              • 这篇关于MySQL Regexp 是否支持 Unicode 匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Bogus foreign key constraint fail(虚假外键约束失败)
                how to get last insert id after insert query in codeigniter active record(如何在codeigniter活动记录中插入查询后获取最后一个插入ID)
                Force InnoDB to recheck foreign keys on a table/tables?(强制 InnoDB 重新检查表/表上的外键?)
                How to auto generate migrations with Sequelize CLI from Sequelize models?(如何使用 Sequelize CLI 从 Sequelize 模型自动生成迁移?)
                Clear MySQL query cache without restarting server(无需重启服务器即可清除 MySQL 查询缓存)
                ALTER TABLE to add a composite primary key(ALTER TABLE 添加复合主键)
                  <tbody id='nT3rX'></tbody>

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

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

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