2009-08-12 11 views

答えて

11

が、'a) 'は他の場所の文字列で発生した場合、それは具体的には、エッジケースでは動作しません。

8

あなたは、文字列の部分を削除することもREPLACEを使用することができます。 SUBSTRを使用して、最初の3文字だけを削除します。

UPDATE tbl SET col=SUBSTR(col, 4) WHERE col LIKE 'a) %'; 

... noting that strings are indexed from 1 in SQLite

sqlite> SELECT REPLACE ("a) I have some information (or data) in the file.", "a) ", ""); 
I have some information (or datin the file. 

sqlite> SELECT SUBSTR ("a) I have some information (or data) in the file.", 4); 
I have some information (or data) in the file. 

だから彼のクエリを更新する、それがに変わるはずです。

関連する問題