UPDATE destoon_company SET catid =CONCAT(',',catid,',') , catids =catid WHERE (catid REGEXP '[^0-9.]') = 0 LIMIT 8
字符相加
CONCAT
判断字段为纯数字
(catid REGEXP '[^0-9.]') = 0
catid = catids [条一条已经处理并记录]
标签:语句,catid,相加,字段,mysql,REGEXP,catids,CONCAT
来源: https://www.cnblogs.com/lgms2008/p/15576690.html