MYSQL现在的值前頭加個0的辦法

来源:互联网 发布:cf弹道优化脚本 编辑:程序博客网 时间:2024/05/19 10:09

update `tbl_student` set `student_id`=CONCAT('0',`student_id`), `student_login`=CONCAT('0',`student_login`) where student_id NOT LIKE '0%' AND student_login NOT LIKE '0%';