Commands (Cont. 3 )
- Searching using the
findOne()
We can search for a particular attribute of a document using the findOne().
This print out the list of collections. We can also show tables
- show db.getCollectionNames()
This returns the collection names as an array.
0 comments:
Post a Comment