mysql replace用法
- replace into
插入记录
mysql> select * from testreplace;
mysql> replace into testreplace(id,name) values(1, '1'), (2, '2'), (3,'3');
mysql> select * from testreplace;
- replace(object,search,replace)
替换字符串
插入记录
mysql> select * from testreplace;
mysql> replace into testreplace(id,name) values(1, '1'), (2, '2'), (3,'3');
mysql> select * from testreplace;
替换字符串