Skip to content

关联表如何多条件联合查询 #836

@Kongdy

Description

@Kongdy

比如有两个表,User 和 UserInfo。
User 中有两个字段,isVip 和 userInfo, User 和 UserInfo 是一对一的关系。
UserInfo 中有年龄字段。

现在想查询 年龄大于 30,并且 isVip 是 true 的数据,返回所有 User,该如何操作呢

网上查了很多文章,提到使用 关联表.字段 的方式来判断,但是试了各种方式,都提示不识别 column

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions