时间:2021-07-01 10:21:17 帮助过:28人阅读
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 '/''