<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Angel's Blog</title>
		<link>https://angelcool.net/sphpblog/blog_index.php</link>
		<description><![CDATA[No Footer]]></description>
		<copyright>Copyright 2026, Angel</copyright>
		<managingEditor>Angel</managingEditor>
		<language>en-US</language>
		<generator>SPHPBLOG 0.7.0</generator>
		<item>
			<title>MongoDB CLI 101 Fundamentals</title>
			<link>https://angelcool.net/sphpblog/blog_index.php?entry=entry140111-120503</link>
			<description><![CDATA[<pre><br />[Angel@localhost ~]$ mongo<br />&gt; show collections; //equivalent to rdbms tables<br />&gt; use test; //use test db<br />&gt; db.test.count();<br />&gt; db.test.find(); //all documents, a document is like a rdbms row.<br />&gt; db.test.find({_id:ObjectId(&quot;52c351ffc5c629a6ca901ae5&quot;)});// where _id equals to...<br />&gt; db.test.find({_id:ObjectId(&quot;52c351ffc5c629a6ca901ae5&quot;)},{&#039;_id&#039;:0}); // _id field is not displayed<br />&gt; db.test.update({_id:ObjectId(&quot;52c351ffc5c629a6ca901ae5&quot;)},{&#039;field-to-update&#039;:&#039;new-value&#039;});//updating a field<br />&gt; db.test.update({_id:ObjectId(&quot;52c351ffc5c629a6ca901ae5&quot;)},{$set:{&#039;Year&#039;:2014}}); //add new field<br /><br /></pre>]]></description>
			<category>- MongoDB Notes</category>
			<guid isPermaLink="true">https://angelcool.net/sphpblog/blog_index.php?entry=entry140111-120503</guid>
			<author>Angel</author>
			<pubDate>Sat, 11 Jan 2014 19:05:03 GMT</pubDate>
		</item>
	</channel>
</rss>
