替換行首字元,而不替換字段中其它地方指定字元。
UPDATE table SET open_time = CONCAT('W', open_time) WHERE open_time REGEXP '^:';
UPDATE table SET open_time = REPLACE(open_time, 'W:', '') WHERE open_time REGEXP '^W:';
替換字段中所有位置的某一字元:
UPDATE table SET qq = REPLACE(qq, 'uin=', '') WHERE qq REGEXP '^uin=';