update bas_c_tower b set b.tower_name=
(select substr(tower_name,1,length(tower_name)-1) from bas_c_tower a where b.id=a.id )
where substr(b.tower_name,length(b.tower_name),1)='塔';
其效果大概就是这样的,就是某个字段多输入了一个字,现在就是把这个字去掉
update bas_c_tower b set b.tower_name=
(select substr(tower_name,1,length(tower_name)-1) from bas_c_tower a where b.id=a.id )
where substr(b.tower_name,length(b.tower_name),1)='塔';
其效果大概就是这样的,就是某个字段多输入了一个字,现在就是把这个字去掉