
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference Between show dbs and show databases in MongoDB
There is no difference between show dbs and show databases. Both commands internally call listDatabases command.
The show dbs command is as follows −
> show dbs
This will produce the following output −
admin 0.002GB app 0.000GB business 0.000GB config 0.000GB local 0.000GB main 0.000GB my 0.001GB ok 0.001GB sample 0.003GB sampleDemo 0.000GB studentSearch 0.000GB test 0.034GB university 0.000GB web 0.003GB webcustomertracker 0.000GB
The show databases command is as follows −
> show databases
This will produce the following output −
admin 0.002GB app 0.000GB business 0.000GB config 0.000GB local 0.000GB main 0.000GB my 0.001GB ok 0.001GB sample 0.003GB sampleDemo 0.000GB studentSearch 0.000GB test 0.034GB university 0.000GB web 0.003GB webcustomertracker 0.000GB
Advertisements