要指定數組字段中元素的條件, 請使用 { <array field>: { <operator1>: <value1>, … } } ,比如查詢 number 至少包含一個值大于8 的, $elemMatch , 如果數組字段中的元素符合所有指定$elemMatch條件,則選擇文檔。 1 2 3 4 5 6 7 8 # 查詢 number 至少包含一個值大于8 的 sit_rs1:PRIMARY> db...
www.dbjr.com.cn/database/2926141...htm 2025-5-31