收藏
回答

云函数如何实现not in联表查询?

集合A中字段: _id; solid; … 集合B中字段: _id; userid; solid; … 现在想实现如下联表查询: select * from A where solid not in (select solid from B where userid ="XXX")

回答关注问题邀请回答
收藏

2 个回答

  • TinyUlt
    TinyUlt
    2022-03-18

    微信小程序 云函数 数据库操作 - TinyUlt的文章 - 知乎

    https://zhuanlan.zhihu.com/p/480904435

    获取用户未看过视频,里面有方法




    2022-03-18
    有用
    回复
  • o0o有脾气的酸奶
    o0o有脾气的酸奶
    2020-06-08

    lookup

    https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.lookup.html

    2020-06-08
    有用
    回复 5
    • 杨明忠
      杨明忠
      2020-06-09
      lookup方法  in操作行,not in可能不行吧?还是我不会操作?
      2020-06-09
      回复
    • o0o有脾气的酸奶
      o0o有脾气的酸奶
      2020-06-09回复杨明忠
      自己试试看
      2020-06-09
      回复
    • 杨明忠
      杨明忠
      2020-06-09
      谢谢,确实没怎么用过,我有时间好好学学
      2020-06-09
      回复
    • o0o有脾气的酸奶
      o0o有脾气的酸奶
      2020-06-09回复杨明忠
      第二种效率应该会比第一种好
      2020-06-09
      回复
    • 犹
      2021-09-04回复o0o有脾气的酸奶
      垃圾 都是错的 ,误人子弟
      2021-09-04
      回复
登录 后发表内容
问题标签