摘要:
查询一些用户的首笔订单: select a.* from tb_order as a right join (select user_id, min(create_time) as maxtime from tb_order where user_id in(111,222,333) group b 阅读全文
摘要:
往常使用options.Find().SetSort(bson.D{{"a", -1},{"b", -1}})结果报错,感觉使用方法没问题,排查之后发现是import的包错了导致。 cannot transform type bson.D to a BSON Document: WriteArray 阅读全文