Mysql字段varchar类型值前面拼接上0,使用、修改(concat函数的使用)

 update channel set code =concat('0',code) where code  like '5%'; 

当code值是以 ‘5’ 开头的值前面拼接上 ‘0’;

修改前:


修改后:



猜你喜欢

转载自blog.csdn.net/panshoujia/article/details/80810484