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}解决 无用评论 打赏 举报
悬赏问题
- ¥15 matlab实现基于主成分变换的图像融合。
- ¥15 对于相关问题的求解与代码
- ¥15 ubuntu子系统密码忘记
- ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
- ¥15 保护模式-系统加载-段寄存器
- ¥15 电脑桌面设定一个区域禁止鼠标操作
- ¥15 求NPF226060磁芯的详细资料
- ¥15 使用R语言marginaleffects包进行边际效应图绘制
- ¥20 usb设备兼容性问题
- ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊