want to insert a string containing double quotes and single quotes, as follows.
db.collectionName.insert ({"filedName": "my field contains" double quotes "and" single quotes ", how to insert"});
when I try to paste above, it got an error since my field contains double quotes, can someone tell me something like a scape sequence to insert a double quote?
I canβt do what in my field also contains single quotes. db.collectionName.insert ({"filedName": 'my field contains "double quotes" and "single quotes", how to insert'});
Thanks javad
source share