MongoDB之資料查詢(陣列)
首先在MongoDB裡面是支援陣列儲存的,一旦支援了陣列儲存,就需要針對於陣列的資料進行匹配。
範例:儲存一部分陣列內容
db.emp.insert({"name":"劉A","sex":"男","age":35,"sal":8000,"loc":"北京","course":["語文","數學","英語","音樂","政治"]});
db.emp.insert({"name":"劉B","sex":"男","age":35,"sal":8000,"loc":"北京","course":["語文","數學"]});
db.emp.insert({"name":"劉C","sex":"男","age":35,"sal":8000,"loc":"北京","course":["語文","數學","英語"]});
db.emp.insert({"name":"劉D","sex":"男","age":35,"sal":8000,"loc":"北京","course":["語文","數學","政治"]});
db.emp.insert({"name":"劉E","sex":"男","age":35,"sal":8000,"loc":"北京","course":["語文","政治"]});
> db.emp.find().pretty();
{
"_id" : ObjectId("599108423268c8e84253be26"),
"name" : "趙一",
"sex" : "男",
"age" : 30,
"sal" : 1000,
"loc" : "北京"
}
{
"_id" : ObjectId("599108423268c8e84253be27"),
"name" : "錢二",
"sex" : "女",
"age" : 22,
"sal" : 5000,
"loc" : "上海"
}
{
"_id" : ObjectId("599108423268c8e84253be28"),
"name" : "孫三",
"sex" : "男",
"age" : 40,
"sal" : 2000,
"loc" : "深圳"
}
{
"_id" : ObjectId("599108423268c8e84253be29"),
"name" : "李四",
"sex" : "女",
"age" : 30,
"sal" : 7000,
"loc" : "北京"
}
{
"_id" : ObjectId("599108423268c8e84253be2a"),
"name" : "週五",
"sex" : "女",
"age" : 30,
"sal" : 6400,
"loc" : "北京"
}
{
"_id" : ObjectId("599108423268c8e84253be2b"),
"name" : "吳六",
"sex" : "男",
"age" : 30,
"sal" : 2500,
"loc" : "重慶"
}
{
"_id" : ObjectId("599108423268c8e84253be2c"),
"name" : "鄭七",
"sex" : "女",
"age" : 50,
"sal" : 4700,
"loc" : "成都"
}
{
"_id" : ObjectId("599108433268c8e84253be2d"),
"name" : "王八",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京"
}
{
"_id" : ObjectId("599129a00184ff511bf02b87"),
"name" : "劉A",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"英語",
"音樂",
"政治"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b89"),
"name" : "劉C",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"英語"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b8a"),
"name" : "劉D",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"政治"
]
}
{
"_id" : ObjectId("599129a20184ff511bf02b8b"),
"name" : "劉E",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"政治"
]
}
此時的資料包含有陣列內容,而後需要針對陣列資料進行判斷,可以使用幾個運算子:$all、$size、$slice、$elemMatch
範例:查詢同時參加語文和數學課程的人員
現在兩個陣列內容都需要儲存,所以使用“{"$all",[內容1,內容2,...]}”
> db.emp.find({"course":{"$all":["語文","數學"]}}).pretty();
{
"_id" : ObjectId("599129a00184ff511bf02b87"),
"name" : "劉A",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"英語",
"音樂",
"政治"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b89"),
"name" : "劉C",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"英語"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b8a"),
"name" : "劉D",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"政治"
]
}
現在所有顯示的人員資訊裡面包含語文和數學的內容。而如果差一個內容的不會顯示。
雖然“$all”計算可以用於陣列上,但是也可以用於一個資料的匹配上。
範例:查詢位置是“成都”的人員
> db.emp.find({"loc":{"$all":["成都"]}}).pretty();
{
"_id" : ObjectId("599108423268c8e84253be2c"),
"name" : "鄭七",
"sex" : "女",
"age" : 50,
"sal" : 4700,
"loc" : "成都"
既然在集合裡面現在儲存的是陣列資訊,那麼陣列就可以利用索引操作,使用“key.index”的方式來定義索引。
範例:查詢課程中第二個內容(index=1,索引下標從0開始)為數學的資訊
> db.emp.find({"course.1":"數學"}).pretty();
{
"_id" : ObjectId("599129a00184ff511bf02b87"),
"name" : "劉A",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"英語",
"音樂",
"政治"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b89"),
"name" : "劉C",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"英語"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b8a"),
"name" : "劉D",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"政治"
]
}
範例:要求查詢出只參加兩門課程的人員
使用“$size”來進行數量控制
> db.emp.find({"course":{"$size":2}}).pretty();
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a20184ff511bf02b8b"),
"name" : "劉E",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"政治"
]
}
發現在進行資料查詢的時候,只要內容符合條件,陣列的內容就全備顯示出來,希望控制返回的數量,可以使用“$slice”進行控制。
範例:返回年齡為35歲的所有人員,但是要求只顯示兩門參加的課程
> db.emp.find({"age":35},{"course":{"$slice":2}}).pretty();
{
"_id" : ObjectId("599108433268c8e84253be2d"),
"name" : "王八",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京"
}
{
"_id" : ObjectId("599129a00184ff511bf02b87"),
"name" : "劉A",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b89"),
"name" : "劉C",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b8a"),
"name" : "劉D",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a20184ff511bf02b8b"),
"name" : "劉E",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"政治"
]
}
現在只取得了前兩門的資訊,那麼也可以設定負數取出後兩門資訊。
> db.emp.find({"age":35},{"course":{"$slice":-2}}).pretty();
{
"_id" : ObjectId("599108433268c8e84253be2d"),
"name" : "王八",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京"
}
{
"_id" : ObjectId("599129a00184ff511bf02b87"),
"name" : "劉A",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"音樂",
"政治"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b89"),
"name" : "劉C",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"數學",
"英語"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b8a"),
"name" : "劉D",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"數學",
"政治"
]
}
{
"_id" : ObjectId("599129a20184ff511bf02b8b"),
"name" : "劉E",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"政治"
]
}
或者只是取出中間部分的資訊。
> db.emp.find({"age":35},{"course":{"$slice":[1,2]}}).pretty();
{
"_id" : ObjectId("599108433268c8e84253be2d"),
"name" : "王八",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京"
}
{
"_id" : ObjectId("599129a00184ff511bf02b87"),
"name" : "劉A",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"數學",
"英語"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b89"),
"name" : "劉C",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"數學",
"英語"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b8a"),
"name" : "劉D",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"數學",
"政治"
]
}
{
"_id" : ObjectId("599129a20184ff511bf02b8b"),
"name" : "劉E",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"政治"
]
}
在此時設定的兩個資料裡面,第一個資料表示開始的位置,第二個資料表示個數。
範例:儲存一部分陣列內容
db.emp.insert({"name":"劉A","sex":"男","age":35,"sal":8000,"loc":"北京","course":["語文","數學","英語","音樂","政治"]});
db.emp.insert({"name":"劉B","sex":"男","age":35,"sal":8000,"loc":"北京","course":["語文","數學"]});
db.emp.insert({"name":"劉C","sex":"男","age":35,"sal":8000,"loc":"北京","course":["語文","數學","英語"]});
db.emp.insert({"name":"劉D","sex":"男","age":35,"sal":8000,"loc":"北京","course":["語文","數學","政治"]});
db.emp.insert({"name":"劉E","sex":"男","age":35,"sal":8000,"loc":"北京","course":["語文","政治"]});
> db.emp.find().pretty();
{
"_id" : ObjectId("599108423268c8e84253be26"),
"name" : "趙一",
"sex" : "男",
"age" : 30,
"sal" : 1000,
"loc" : "北京"
}
{
"_id" : ObjectId("599108423268c8e84253be27"),
"name" : "錢二",
"sex" : "女",
"age" : 22,
"sal" : 5000,
"loc" : "上海"
}
{
"_id" : ObjectId("599108423268c8e84253be28"),
"name" : "孫三",
"sex" : "男",
"age" : 40,
"sal" : 2000,
"loc" : "深圳"
}
{
"_id" : ObjectId("599108423268c8e84253be29"),
"name" : "李四",
"sex" : "女",
"age" : 30,
"sal" : 7000,
"loc" : "北京"
}
{
"_id" : ObjectId("599108423268c8e84253be2a"),
"name" : "週五",
"sex" : "女",
"age" : 30,
"sal" : 6400,
"loc" : "北京"
}
{
"_id" : ObjectId("599108423268c8e84253be2b"),
"name" : "吳六",
"sex" : "男",
"age" : 30,
"sal" : 2500,
"loc" : "重慶"
}
{
"_id" : ObjectId("599108423268c8e84253be2c"),
"name" : "鄭七",
"sex" : "女",
"age" : 50,
"sal" : 4700,
"loc" : "成都"
}
{
"_id" : ObjectId("599108433268c8e84253be2d"),
"name" : "王八",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京"
}
{
"_id" : ObjectId("599129a00184ff511bf02b87"),
"name" : "劉A",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"英語",
"音樂",
"政治"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b89"),
"name" : "劉C",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"英語"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b8a"),
"name" : "劉D",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"政治"
]
}
{
"_id" : ObjectId("599129a20184ff511bf02b8b"),
"name" : "劉E",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"政治"
]
}
此時的資料包含有陣列內容,而後需要針對陣列資料進行判斷,可以使用幾個運算子:$all、$size、$slice、$elemMatch
範例:查詢同時參加語文和數學課程的人員
現在兩個陣列內容都需要儲存,所以使用“{"$all",[內容1,內容2,...]}”
> db.emp.find({"course":{"$all":["語文","數學"]}}).pretty();
{
"_id" : ObjectId("599129a00184ff511bf02b87"),
"name" : "劉A",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"英語",
"音樂",
"政治"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b89"),
"name" : "劉C",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"英語"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b8a"),
"name" : "劉D",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"政治"
]
}
現在所有顯示的人員資訊裡面包含語文和數學的內容。而如果差一個內容的不會顯示。
雖然“$all”計算可以用於陣列上,但是也可以用於一個資料的匹配上。
範例:查詢位置是“成都”的人員
> db.emp.find({"loc":{"$all":["成都"]}}).pretty();
{
"_id" : ObjectId("599108423268c8e84253be2c"),
"name" : "鄭七",
"sex" : "女",
"age" : 50,
"sal" : 4700,
"loc" : "成都"
既然在集合裡面現在儲存的是陣列資訊,那麼陣列就可以利用索引操作,使用“key.index”的方式來定義索引。
範例:查詢課程中第二個內容(index=1,索引下標從0開始)為數學的資訊
> db.emp.find({"course.1":"數學"}).pretty();
{
"_id" : ObjectId("599129a00184ff511bf02b87"),
"name" : "劉A",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"英語",
"音樂",
"政治"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b89"),
"name" : "劉C",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"英語"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b8a"),
"name" : "劉D",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學",
"政治"
]
}
範例:要求查詢出只參加兩門課程的人員
使用“$size”來進行數量控制
> db.emp.find({"course":{"$size":2}}).pretty();
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a20184ff511bf02b8b"),
"name" : "劉E",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"政治"
]
}
發現在進行資料查詢的時候,只要內容符合條件,陣列的內容就全備顯示出來,希望控制返回的數量,可以使用“$slice”進行控制。
範例:返回年齡為35歲的所有人員,但是要求只顯示兩門參加的課程
> db.emp.find({"age":35},{"course":{"$slice":2}}).pretty();
{
"_id" : ObjectId("599108433268c8e84253be2d"),
"name" : "王八",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京"
}
{
"_id" : ObjectId("599129a00184ff511bf02b87"),
"name" : "劉A",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b89"),
"name" : "劉C",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b8a"),
"name" : "劉D",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a20184ff511bf02b8b"),
"name" : "劉E",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"政治"
]
}
現在只取得了前兩門的資訊,那麼也可以設定負數取出後兩門資訊。
> db.emp.find({"age":35},{"course":{"$slice":-2}}).pretty();
{
"_id" : ObjectId("599108433268c8e84253be2d"),
"name" : "王八",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京"
}
{
"_id" : ObjectId("599129a00184ff511bf02b87"),
"name" : "劉A",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"音樂",
"政治"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b89"),
"name" : "劉C",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"數學",
"英語"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b8a"),
"name" : "劉D",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"數學",
"政治"
]
}
{
"_id" : ObjectId("599129a20184ff511bf02b8b"),
"name" : "劉E",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"語文",
"政治"
]
}
或者只是取出中間部分的資訊。
> db.emp.find({"age":35},{"course":{"$slice":[1,2]}}).pretty();
{
"_id" : ObjectId("599108433268c8e84253be2d"),
"name" : "王八",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京"
}
{
"_id" : ObjectId("599129a00184ff511bf02b87"),
"name" : "劉A",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"數學",
"英語"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b88"),
"name" : "劉B",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"數學"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b89"),
"name" : "劉C",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"數學",
"英語"
]
}
{
"_id" : ObjectId("599129a00184ff511bf02b8a"),
"name" : "劉D",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"數學",
"政治"
]
}
{
"_id" : ObjectId("599129a20184ff511bf02b8b"),
"name" : "劉E",
"sex" : "男",
"age" : 35,
"sal" : 8000,
"loc" : "北京",
"course" : [
"政治"
]
}
在此時設定的兩個資料裡面,第一個資料表示開始的位置,第二個資料表示個數。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28536251/viewspace-2144296/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MongoDB(12)- 查詢嵌入文件的陣列MongoDB陣列
- MongoDB資料庫中查詢資料(下)MongoDB資料庫
- 查詢陣列裡資料刪除和增加的方法陣列
- 二維陣列查詢陣列
- 在MongoDB資料庫中查詢資料(上)MongoDB資料庫
- Python全棧MongoDB資料庫(資料的查詢)Python全棧MongoDB資料庫
- Python全棧 MongoDB 資料庫(資料的查詢)Python全棧MongoDB資料庫
- Laravel 查詢資料庫欄位內容是 Json 陣列時的查詢語句Laravel資料庫JSON陣列
- 陣列的主元素查詢陣列
- 資料結構之「陣列」資料結構陣列
- 資料結構之陣列資料結構陣列
- 二維陣列中的查詢陣列
- 陣列中查詢給定值陣列
- MongoDB 聚合嵌入的陣列(扁平化資料+管道)MongoDB陣列
- JavaScript專題之學underscore在陣列中查詢指定元素JavaScript陣列
- 【JZOF】二維陣列中的查詢陣列
- MYSQL A、B表陣列關聯查詢MySql陣列
- 【LeetCode-陣列】查詢大多數元素LeetCode陣列
- 【Java】陣列二分查詢元素Java陣列
- LeetCode之資料結構——陣列LeetCode資料結構陣列
- php資料型別之陣列PHP資料型別陣列
- MongoDB - 聚合查詢MongoDB
- python資料庫-mongoDB的高階查詢操作(55)Python資料庫MongoDB
- JavaScript資料結構之陣列棧佇列JavaScript資料結構陣列佇列
- 陣列的查詢(搜尋):線性查詢和二分法查詢陣列
- Excel查詢兩列資料相同的元素Excel
- 查詢陣列中第K大的元素陣列
- 基礎資料結構之陣列資料結構陣列
- 玩轉資料結構之陣列資料結構陣列
- 資料結構之陣列和矩陣--矩陣&不規則二維陣列資料結構陣列矩陣
- 資料庫全表查詢之-分頁查詢優化資料庫優化
- ❖ MongoDB 高階查詢MongoDB
- mongodb慢查詢分析MongoDB
- Mongodb高階查詢MongoDB
- MongoDB查詢條件MongoDB
- MongoDB查詢總結MongoDB
- 雙指標查詢陣列的連續規律子陣列問題指標陣列
- MSSQL遍歷資料庫根據列值查詢資料SQL資料庫
- mysql查詢語句陣列下標擷取MySql陣列