--高级查询在数据库中用得是最频繁的,也是应用最广泛的。 Ø 基本常用查询 --select select * from student; --all 查询所有 select all sex from student; --distinct 过滤重复 select distinct sex from student; --count 统计 select count(*) from student; select count(sex) from student; select count(dis
using MongoDB.Bson;
using MongoDB.Driver;
按指定用户名,指定日期查询数据
string username=lee;//定义用户名
string[] Dates = new string[] { 2020-03-05, 2020-03-02,2020-03-06};//定义时间段,数量不限
List filterlist = new List();//Message是数据实体
foreach (string date in Dates)
{
fi