基礎數據:
拼接:concat()
##拼接字符串
update z_test set test = CONCAT("前面添加字符串",test,"中間添加字符串",test,"後面添加字符串") where id = 1;
結果:
刪除或者替換:replace()
##過濾(刪除)字符串 update z_test set test = REPLACE(test,"BB","") where id = 2結果:
##替換字符串
update z_test set test = REPLACE(test,"CC","66666") where id = 3
結果: