时间:2021-07-01 10:21:17 帮助过:19人阅读
一下任何一句都可以
其实你原先的帖子已经有答案了
update tbl_name set field_name=if(field_name REGEXP '/$', substr(field_name,1,length(field_name)-1),field_name)update tbl_name set field_name=if(field_name RLIKE '/', substr(field_name,1,length(field_name)-1),field_name)update tbl_name set field_name=substr(field_name,1,length(field_name)-1) where field_name REGEXP '/$'update tbl_name set field_name=substr(field_name,1,length(field_name)-1) where field_name RLIKE '/''update tbl_name set field_name=left(field_name,length(field_name)-1) where field_name REGEXP '/$'update tbl_name set field_name=left(field_name,length(field_name)-1) where field_name RLIKE '/''
看着很爽,先结了