加前綴: update 表名 set 列名 = concat(‘前綴’,列名), 如: update t_table set name = concat(‘abc’, name'), name 列中每個值前面拼接abc
加后綴: update 表名 set 列名 = concat(列名,‘后綴’), 如: update t_table set name = concat(name, 'abc'), name 列中每個值后面拼接abc
加前綴: update 表名 set 列名 = concat(‘前綴’,列名), 如: update t_table set name = concat(‘abc’, name'), name 列中每個值前面拼接abc
加后綴: update 表名 set 列名 = concat(列名,‘后綴’), 如: update t_table set name = concat(name, 'abc'), name 列中每個值后面拼接abc
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。