<tfoot id='Z2oOc'></tfoot>

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

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

      1. oracle blob 文本搜索

        oracle blob text search(oracle blob 文本搜索)
        <i id='DI34b'><tr id='DI34b'><dt id='DI34b'><q id='DI34b'><span id='DI34b'><b id='DI34b'><form id='DI34b'><ins id='DI34b'></ins><ul id='DI34b'></ul><sub id='DI34b'></sub></form><legend id='DI34b'></legend><bdo id='DI34b'><pre id='DI34b'><center id='DI34b'></center></pre></bdo></b><th id='DI34b'></th></span></q></dt></tr></i><div id='DI34b'><tfoot id='DI34b'></tfoot><dl id='DI34b'><fieldset id='DI34b'></fieldset></dl></div>

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

          • <tfoot id='DI34b'></tfoot>
              <bdo id='DI34b'></bdo><ul id='DI34b'></ul>

                    <tbody id='DI34b'></tbody>
                  <legend id='DI34b'><style id='DI34b'><dir id='DI34b'><q id='DI34b'></q></dir></style></legend>
                1. 本文介绍了oracle blob 文本搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否可以使用 sql 语句搜索 blob 文本?我可以选择 * from $table where f1 like '%foo%' 如果 f1 是 varchar,那么 f1 是一个 blob 怎么样?这有什么对应的部分吗?

                  Is it possible to search through blob text using sql statement? I can do select * from $table where f1 like '%foo%' if the f1 is varchar, how about f1 is a blob? Any counter part for this?

                  推荐答案

                  这很有可能而且很容易做到.

                  This is quite possible and easy to do.

                  只需将 dbms_lob.instr 与 utl_raw.cast_to_raw 结合使用

                  Simply use dbms_lob.instr in conjunction with utl_raw.cast_to_raw

                  因此,在您的情况下,如果 t1 是 BLOB,则选择将如下所示:

                  So in your case, if t1 is a BLOB the select would look like:

                  select *
                    from table1
                   where dbms_lob.instr (t1, -- the blob
                                     utl_raw.cast_to_raw ('foo'), -- the search string cast to raw
                                     1, -- where to start. i.e. offset
                                     1 -- Which occurrance i.e. 1=first
                                      ) > 0 -- location of occurrence. Here I don't care.  Just find any
                  ;
                  

                  这篇关于oracle blob 文本搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                  Creating a flattened table/view of a hierarchically-defined set of data(创建分层定义的数据集的扁平表/视图)
                  MySQL: how to do row-level security (like Oracle#39;s Virtual Private Database)?(MySQL:如何做到行级安全(如 Oracle 的 Virtual Private Database)?)
                  What is the best way to enforce a #39;subset#39; relationship with integrity constraints(强制执行具有完整性约束的“子集关系的最佳方法是什么)
                  Split String by delimiter position using oracle SQL(使用 oracle SQL 按分隔符位置拆分字符串)
                  How to unfold the results of an Oracle query based on the value of a column(如何根据列的值展开Oracle查询的结果)

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

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