Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个不起作用: SELECT *FROM {User as u JOIN Address as a ON {u:a} = {a:pk}} 。
正如您在关系基数中看到的,所有者作为用户。
所以查询应该是这样的
SELECT *FROM {User as u JOIN Address as a ON {u:pk} = {a:owner}}
错过了限定符是 "owner" ,通常按照约定将其命名为 type 。选择 {a.PK} 从 {customer as c 加入地址 as a on {c.pk}={a.owner}}