Java, C++, Database, Algorithms, Searching, Sorting, Linklist, Tree, Number Theory, String, Array, Graph, MongoDB, Mysql, Oracle
getName()
This method returns the current database name. This method is also used to check in which database currently we are.
Syntax:
db.getName()
Example
MongoDB
Output
test
No comments:
Post a Comment