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

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

      • <bdo id='Wg3St'></bdo><ul id='Wg3St'></ul>
    1. mysql 喜欢性能提升

      mysql like performance boost(mysql 喜欢性能提升)

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

          <tfoot id='6jBIQ'></tfoot>

          <legend id='6jBIQ'><style id='6jBIQ'><dir id='6jBIQ'><q id='6jBIQ'></q></dir></style></legend>
            <bdo id='6jBIQ'></bdo><ul id='6jBIQ'></ul>
            • <small id='6jBIQ'></small><noframes id='6jBIQ'>

                本文介绍了mysql 喜欢性能提升的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                如果涉及通配符,是否可以像操作员一样加速 mysql 的性能?例如.像'%test%'

                is there anyway to speed up mysql like operator performance if wild card is involved? eg. like '%test%'

                推荐答案

                如果您的查询看起来像 foo LIKE 'abc%'foo LIKE 'abc%def,MySQL 可以使用索引%'.它可以使用任何部分的索引或第一个通配符之前的字符串.如果您需要匹配字符串中任意位置的单词,您可能需要考虑使用 FULLTEXT 索引.

                MySQL can use an index if your query looks like foo LIKE 'abc%' or foo LIKE 'abc%def%'. It can use the index for any portion or the string before the first wildcard. If you need to match a word anywhere within a string, you might want to consider using FULLTEXT indexes instead.

                关于索引的更多细节:http://dev.mysql.com/doc/refman/5.1/en/mysql-indexes.html

                全文搜索:http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html

                这篇关于mysql 喜欢性能提升的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 添加复合主键)
                • <tfoot id='Z2szy'></tfoot>
                  • <bdo id='Z2szy'></bdo><ul id='Z2szy'></ul>
                      <tbody id='Z2szy'></tbody>

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

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