DDCODE

Share programming skills from Magic Oriental

upArrow

Mongodb: Why can’t you set a unique value like this?

 May 12, 2019   mongodb, question

clipboard.png

clipboard.png

The new version does not allow unique index to be created in duplicate.

Because he also does not know how to deal with duplicate data

So remove the duplication and build it again.

Please refer to the following discussion posts:
http://forum.foxera.com/mongo …

Related Posts:

  • Mongodb _id is similar to uuid globally unique or…
  • I would like to know the advantages and…
  • Can the distance between the control set by…
  • Now there is a mysql table with a tree structure.…
  • Mysql When a Column Value =N, How Is the Value of…
  • Update of Key Value from Single Value to Multiple…
  • How can MySQL database fields obtain corresponding…
  • How can MySQL database fields obtain corresponding…
  • When designing an order form, if you have a unique…
<< mongodb Mongo Non-Primary Key objectid Can Be Empty >>

Related Posts:

  • Mongodb _id is similar to uuid globally unique or…
  • I would like to know the advantages and…
  • Can the distance between the control set by…
  • Now there is a mysql table with a tree structure.…
  • Mysql When a Column Value =N, How Is the Value of…
  • Update of Key Value from Single Value to Multiple…
  • How can MySQL database fields obtain corresponding…
  • How can MySQL database fields obtain corresponding…
  • When designing an order form, if you have a unique…

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