How To Remove Document From MongoDB(NoSql Database)

Praveen Singh         No comments

First, we will see how to delete a document (row) from the collection (table) and then how to drop whole collection (table).

Let's start...

SQL's way...

Suppose we have a info table with Name column....

Now, if I have to delete a row from info table, I would do something like this :

Delete from info where Name = 'Alex'

Dropping table...

Drop table info


Truncate table info

NOSQL's way....{ Name : 'Alex' })

Dropping Collection....

Published by Praveen Singh

A blogger by passion.You can find me tucked in my bed and blogging on weekends when not roaming around. Besides blogging, I love music and you can find my songs on my fb page:PraveenUnplugged
Follow on Youtube : Videos On Latest Happenings |ThingsToKnow
Follow us Talend In Action

0 responses:

© 2015 Techie's House. Designed by Bloggertheme9