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)