如何从给定的帐号列表中显示不在表中的帐号 [英] how to display account number that is not in table from given list of account numbers

查看:45
本文介绍了如何从给定的帐号列表中显示不在表中的帐号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从表中选择帐户,其中acccount(1,2,3,4,5)



如果在上面的列表中4表中没有,那么必须显示



4

解决方案

 选择帐户来自其中​​ acccount not  in  1  2  3  4  5 


select account from table where acccount (1,2,3,4,5)

if in the above list 4 is not there in the table, it has to display

4

解决方案

select account from table where acccount not in (1,2,3,4,5) 


这篇关于如何从给定的帐号列表中显示不在表中的帐号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆