Home >Database >Mysql Tutorial >mysql字符串替换

mysql字符串替换

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 16:35:041298browse

经常使用mysql的人,免不了需要用到mysql的替换功能,mysql的字符串替换,可以利用update和replace这两个函数实现。updatebiaosetziduan=replace(ziduan,'aaa','bbb')where....另外,replace也可以用来判断性的插入数据。replaceintoreplaceintotable(id,nam

经常使用mysql的人,免不了需要用到mysql的替换功能,mysql的字符串替换,可以利用update和replace这两个函数实现。updatebiaosetziduan=replace(ziduan,'aaa','bbb')where....另外,replace也可以用来判断性的插入数据。replaceintoreplaceintotable(id,name)values('1','aaa'),('2','bbb')如果1,2不存在,则插入。如果存在则不会插入。...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn