If you want to create a table, you should name the table and define its column and each column's data type.
The shell is useful for performing administrative functions and running instances.
How to run the shell
To start the shell, open command prompt, run it as a administrator then run the mongo executable:
MongoDB shell version: 2.4.0 Connecting to: test
You should start mongoDB before starting the shell because shell automatically attempt to connect to a MongoDB server on startup.
Let us take a simple mathematical program:
Note: You can create multiple commands.
If the statement is not completed, the shell allows you to continue writing it on the next line. If you press "Enter" three times in a row, it will cancel the half-formed command and get you back to the > - prompt.