我使用某种方式安装了正则表达式支持
apt-get install sqlite3 sqlite3-pcre
现在我可以在Bash控制台中使用正则表达式查询,例如
DB="somedb.db"
REGEX_EXTENSION="SELECT load_extension('/usr/lib/sqlite3/pcre.so');"
sqlite3 $DB "$REGEX_EXTENSION select * from sometable where name REGEXP '^[a-z]+$'"
但是我该如何使用正则表达式在sqlite查询中更新字符串?