select t.id,
(select i.inst_name from t_institution i where i.inst_no(+)=t.inst_no) inst_no,
t.merchant_no,
t.mid,t.merchant_name,t.short_name,t.status,
t.address,t.contract,t.tel,
(select u.name from t_user u where u.username(+)=t.op_user) op_user,t.op_time from t_merchant t where t.inst_no=#{inst_no} and t.mid=#{mid}
像上面的这样的sql语句是oracle里面的她是正确的,但问题是我现在要使用mysql了数据库了,那么这个语句该怎么修改,关键是他的form后面只有一个表,不知用不能确定where关键字后面的等号右边的表到底是哪一个
带(+)的sql语句如何理解
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
2条回答
- 瓦史托德 2016-12-01 10:21关注
select t.id,
(select i.inst_name from t_institution i right join t on i.inst_no=t.inst_no ) inst_no,
t.merchant_no,
t.mid,t.merchant_name,t.short_name,t.status,
t.address,t.contract,t.tel,
(select u.name from t_user u right join t on u.username=t.op_user) op_user,t.op_time from t_merchant t where t.inst_no=#{inst_no} and t.mid=#{mid}解决 无用评论 打赏 举报