EramSa
EramSa

Reputation: 130

Dose mongodb has RDBMS capabilities?

Is it possible to use Monogodb like mysql, Sql etc.? Dose it support index primary key, foreign key in collations?

Upvotes: 0

Views: 20

Answers (1)

Alex P.
Alex P.

Reputation: 3171

There is an excellent documentation on the comparison between Mongodb and MySQL Take a look here

Primary key in MongoDB is basically the _id field. You can set any value you want. If you don't initialize it, then it is automatically generated for you with an ObjectId

Regarding your question on primary and foreign key there are also excellent documentations.

Upvotes: 1

Related Questions