mysql 语句 字符相加 判断字段为纯数字

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  [条一条已经处理并记录]  

原文地址:https://www.cnblogs.com/lgms2008/p/15576690.html