DDCODE

Share programming skills from Magic Oriental

upArrow

Mongo Non-Primary Key objectid Can Be Empty

 May 12, 2019   mongodb, question

2.

user:{
 father:objectid,
 }

What if the foreign key is empty, only string can be stored?

If you do not set the Objectid of mongodb, the system will automatically generate it.

Related Posts:

  • Is the id of the non-primary key in mongodb string…
  • After MySQL ORDER BY primary key id and LIMIT limit…
  • When mysql data tables are many-to-many…
  • Primary key has been increased by itself, 1062…
  • If a primary key has auto_increment, why should…
  • After mysql deletes a part of the id, how can the…
  • Problems encountered by mongo in replacing the value…
  • A little bit confused about the principle of mysql…
  • May I ask the efficiency of mysql innodb's…
<< Mongodb: Why can’t you set a unique value like this? MONGODB failed to start >>

Related Posts:

  • Is the id of the non-primary key in mongodb string…
  • After MySQL ORDER BY primary key id and LIMIT limit…
  • When mysql data tables are many-to-many…
  • Primary key has been increased by itself, 1062…
  • If a primary key has auto_increment, why should…
  • After mysql deletes a part of the id, how can the…
  • Problems encountered by mongo in replacing the value…
  • A little bit confused about the principle of mysql…
  • May I ask the efficiency of mysql innodb's…

Tags

Android android-studio apache c c++ centos Css css3 Database Docker Eclipse Express Front end git GitHub golang Html html5 Ios java javascript Jquery Laravel linux macos mongodb mysql Nginx node.js npm objective-c php Programmer python redis ruby shell Spring Sql Swift ubuntu vim vue.js Web xcode

Powered by MyWiki WordPress Theme