mysql对varchar类型的列进行计算更改

UPDATE 表名 SET 列名= CAST(列名 AS UNSIGNED)+1 WHERE id = '***'
 

猜你喜欢

转载自blog.csdn.net/sarida/article/details/81736699