目标:
数据表字段 task_num 对应为 123456, 需要把其中的 第三位“”3“”更新为 0 ;
// select id, task_num from "btable" where id ='442'
// 442 123456
// update "btable" set task_num= substr(task_num,1,2)||'0'||substring(task_num,4) where id ='442';
// 442 120456
// substr(string, from [, count]) text 抽取子字串。 substr('alphabet', 3, 2) ph
// substring(string from pattern for escape) text 抽取匹配SQL正则表达式的子字串 substring('Thomas' from '%#"o_a#"_' for '#') oma