oracle有and not这个用法吗语句:select a.* from a where a.num='12' and a.name='34'其中and后面加个not

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 06:05:44
oracle有and not这个用法吗语句:select a.* from a where a.num='12' and a.name='34'其中and后面加个not

oracle有and not这个用法吗语句:select a.* from a where a.num='12' and a.name='34'其中and后面加个not
oracle有and not这个用法吗
语句:select a.* from a where a.num='12' and a.name='34'
其中and后面加个not

oracle有and not这个用法吗语句:select a.* from a where a.num='12' and a.name='34'其中and后面加个not
你的意思是这样吗?
select a.* from a where a.num='12' and a.name='34' and not
如果是这样,肯定会报错的.
oracle中并没有and not的用法,not一般是与is或者in或者exists一起使用的,比如判断某个字段为空或不为空
字段名 is null 或者 字段名 is not null
例如:
select a.* from a where a.num='12' and a.name='34' and sex is not null
判断性别不为空.
此外还有not in 和not exists ,都是表示否定的意思.
还有就是not 后接一个boolean表达式,比如not a = b,就是等价于 ab,表示a不等于b