— 查询平仓的合同关联用户的邮箱手机号和代理商及做市商
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 zuoshi,o.* from core_order o,core_user u
where o.order_status=3
and o.user_id=u.user_id
order by o.user_id

本文介绍了一种SQL查询方法,用于检索平仓状态的合同所关联的用户信息,包括邮箱、手机号、代理商及做市商名称。通过联表查询,实现了对核心订单数据的有效获取与展示。
2644

被折叠的 条评论
为什么被折叠?



