In this blog the procedure of MongoDB would be is described in details. It is known that MongoDB have provided a series of efficient solution to some different questions, such as high performance , changeable type and so on. Compared with the MySQL database, the MONGODB also support the procedure process. The first thing that should know on procedure is the language, JavaScript. In the next time, I'll set an example to describe this question:
In the above example, the command ' db.eval () ' must is attached importance because of its strange feature. We could write the logic into this method and meanwhile call it without declaring the procedure process before calling.
In the above exmple, one question should is cared about. When you use procedure process, you should define the procedure of the database where you want to use procedure;
"MongoDB" The description of procedure in MongoDB