sql存在一个表而不在还有一个表中的数据 -尊龙游戏旗舰厅官网
尊龙游戏旗舰厅官网
收集整理的这篇文章主要介绍了
sql存在一个表而不在还有一个表中的数据
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
select a.id,a.oacode,a.custid,a.custname,a.xsz,a.salename,a.communicationtheme,a.communicationproperty,a.communicationtime,a.productmanager,'' creator,a.creator oacreator,a.createdate,case when a.oastate='正常结束' then 3 else 0 end status from reception_flow a
where (1=1)
and (a.oastate='正常结束' or a.oastate='反馈中' or a.oastate='已反馈')
and (select count(1) as num from technology_support s where s.oacode=a.oacode)=0
转载于:https://www.cnblogs.com/yutingliuyl/p/6773111.html
总结
以上是尊龙游戏旗舰厅官网为你收集整理的sql存在一个表而不在还有一个表中的数据的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 小金登陆游戏
- 下一篇: