組み込みの後方参照INSTR
がないため、このクエリは正気ではありません!!!
正確に 6 フィールドの場合、次のようになります。
SELECT ROWID FROM mark WHERE 250 >= CAST(SUBSTR(pointer,1, INSTR(pointer, ",")-1) AS
INT) AND 250<CAST(SUBSTR(SUBSTR(SUBSTR(SUBSTR(SUBSTR(pointer,INSTR(pointer,",")+1),
INSTR(SUBSTR(pointer,INSTR(pointer,",")+1),",")+1), INSTR(SUBSTR(SUBSTR(pointer,
INSTR(pointer,",")+1),INSTR(SUBSTR(pointer,INSTR(pointer,",")+1),",")+1),",")+1),
INSTR(SUBSTR(SUBSTR(SUBSTR(pointer,INSTR(pointer,",")+1),INSTR(SUBSTR(pointer,
INSTR(pointer,",")+1),",")+1),INSTR(SUBSTR(SUBSTR(pointer,INSTR(pointer,",")+1),
INSTR(SUBSTR(pointer,INSTR(pointer,",")+1),",")+1),",")+1),",")+1),INSTR(SUBSTR(
SUBSTR(SUBSTR(SUBSTR(pointer,INSTR(pointer,",")+1),INSTR(SUBSTR(pointer,
INSTR(pointer,",")+1),",")+1),INSTR(SUBSTR(SUBSTR(pointer,INSTR(pointer,",")+1),
INSTR(SUBSTR(pointer,INSTR(pointer,",")+1),",")+1),",")+1),INSTR(SUBSTR(SUBSTR(
SUBSTR(pointer,INSTR(pointer,",")+1),INSTR(SUBSTR(pointer,INSTR(pointer,",")+1)
,",")+1),INSTR(SUBSTR(SUBSTR(pointer,INSTR(pointer,",")+1),INSTR(SUBSTR(pointer,
INSTR(pointer,",")+1),",")+1),",")+1),",")+1),",")+1) AS INT);
これの代わりに問題のある計算された一時テーブルを使用することをお勧めします...