sujin190
V2EX  ›  问与答

怎样给 mongodb 整个数组作为一个唯一项建立唯一索引啊?

  •  
  •   sujin190 · Oct 21, 2014 · 3807 views
    This topic created in 4354 days ago, the information mentioned may be changed or developed.
    怎样给mongodb整个数组作为一个唯一项建立唯一索引啊?默认给数组建立唯一索引是给数组中得每一项建立唯一索引,这样只要有相同的数据第二项就插不进去了啊?求解
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5388 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 07:23 · PVG 15:23 · LAX 00:23 · JFK 03:23
    ♥ Do have faith in what you're doing.