首页 > 其他 > 详细

or exists验证联合查询关联表是否存在存在则查询出信息

时间:2019-05-13 18:32:00      阅读:176      评论:0      收藏:0      [点我收藏+]

select 1 as biaoshi from jdxtz where exists (

select * from gzpxx where gzpxx.bh=jdxtz.gzpbh and dqzt=‘借出‘

or exists( select * from xlgl where xlgl.bh=jdxtz.gsxlbh and dqzt=‘借出‘)

or exists( select * from gtxx where gtxx.bh=jdxtz.gsgtbh and dqzt=‘借出‘)

) and rownum<=1

or exists验证联合查询关联表是否存在存在则查询出信息

原文:https://www.cnblogs.com/java-llp/p/10858241.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!