This commit is contained in:
make
2025-11-29 18:02:40 +08:00
parent 1239ed9522
commit 0747eeaff3
5 changed files with 33 additions and 10 deletions

View File

@@ -40,4 +40,18 @@ db.category.createIndex({"ca_name":1},{unique:true})
// 统计
db.novel_clicks.createIndex({ "n_id": 1, "nc_date": 1, "nc_type": 1 },{ unique: true });
// 查询某个资源线路的数据
db.video.find(
{ "v_play_url.douban": { $exists: true } }
).limit(10)
// 删除某个资源线路的数据
db.video.updateMany(
{},
{ $unset: { "v_play_url.douban": "" } }
)
````