sql查詢的字段可以直接關聯表進行查詢

— 查詢平倉的合同關聯用戶的郵箱手機號和代理商及做市商 select u.user_id,u.email,u.mobile_number,(select g.name from organization g where g.id=u.agent_id) as daili,(select g.name from organization g where g.id=u.org_id) as zuosh
相關文章
相關標籤/搜索