zoukankan      html  css  js  c++  java
  • Access Like内存溢出问题排查,并找出相应的包含26个日文片假名数据的sql语句

    26个日文片假名会导致Access搜索( 内存溢出)
    ゴ ガ ギ グ ゲ ザ ジ ズ ヅ デ ド ポ ベ プ ビ パ ヴ ボ ペ ブ ピ バ ヂ ダ ゾ ゼ
    解决方案:
     title like '%关键字%'
    like 换成 instr替代即可
    InStr(1,LCase(title),LCase('关键字'),0)<>0

    排查数据:建设table表的描述(description)里面含有日文则用一下语句排查。

    SELECT *
    FROM table b1
    WHERE (InStr(1, LCASE(DESCRIPTION), LCASE('ゴ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ガ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ギ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('グ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ゲ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ザ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ジ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ズ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ヅ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('デ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ド'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ポ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ベ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('プ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ビ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('パ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ヴ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ボ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ペ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ブ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ピ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('バ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ヂ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ダ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ゾ'), 0) <> 0) OR
    (InStr(1, LCASE(DESCRIPTION), LCASE('ゼ'), 0) <> 0)

  • 相关阅读:
    Unix domain sockets
    python异常处理
    php注册登录源代码
    div,css命名规范!
    html、css和js注释的规范用法
    PHPstrom的Disable Power Save Mode
    开通了博客园
    O(1)时间删除链表中的节点 13
    打印1到最大的n位数 12
    自己实现一个数的整数次方 11
  • 原文地址:https://www.cnblogs.com/Wilson6/p/15338142.html
Copyright © 2011-2022 走看看