mysql replace用法

  1. replace into 

    插入记录

mysql> select * from testreplace;

mysql> replace into testreplace(id,name) values(1, '1'), (2, '2'), (3,'3');

mysql> select * from testreplace;

 

  1. replace(object,search,replace) 

    替换字符串

posted @ 2016-04-29 10:28  leungcnblogs  阅读(169)  评论(0编辑  收藏  举报