mongodb如何实现mysql里的replace用法
PHPz
PHPz 2017-04-24 09:09:38
0
1
802

例如:mysql里:
UPDATE tb1 SET f1=REPLACE(f1, 'abc', 'def');
那么在mongodb下,如何实现类似的用法?就是针对collection中某个key的值value,进行字符串替换。

PHPz
PHPz

学习是最好的投资!

reply all(1)
巴扎黑

Customized func, very convenient

Visually guess that you want to operate in batches, mapreduce

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template