oracle and里面嵌套and问题我想知道and()这个语法是什么意思?还有and t22.busType in ('4','6','7') or t11.maType'2'这个语法是什么意思?and t22.num is not null and (t11.type in ('1','2') and t11.maType='2' and t22.busType

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/04 01:08:18
oracle and里面嵌套and问题我想知道and()这个语法是什么意思?还有and t22.busType in ('4','6','7')  or  t11.maType'2'这个语法是什么意思?and t22.num is not null and (t11.type in ('1','2') and t11.maType='2'     and t22.busType

oracle and里面嵌套and问题我想知道and()这个语法是什么意思?还有and t22.busType in ('4','6','7') or t11.maType'2'这个语法是什么意思?and t22.num is not null and (t11.type in ('1','2') and t11.maType='2' and t22.busType
oracle and里面嵌套and问题
我想知道and()这个语法是什么意思?还有and t22.busType in ('4','6','7') or t11.maType<>'2'这个语法是什么意思?
and t22.num is not null
and (
t11.type in ('1','2')
and t11.maType='2'
and t22.busType in ('4','6','7') or t11.maType<>'2'
)

oracle and里面嵌套and问题我想知道and()这个语法是什么意思?还有and t22.busType in ('4','6','7') or t11.maType'2'这个语法是什么意思?and t22.num is not null and (t11.type in ('1','2') and t11.maType='2' and t22.busType
这个不叫and 里嵌套and
首先
and t22.busType in ('4','6','7') or t11.maType'2'这个意思是
将复合t22.busType in ('4','6','7')这个条件的数据给我拿出来并且把t11.maType'2'
的数据也给我拿出来
一般 有or 才会用括号()
再给你解释下面这个语句
and (
t11.type in ('1','2')
and t11.maType='2'
and t22.busType in ('4','6','7') or t11.maType'2'
)
这个括号就是给OR用的
2部分数据需要给我拿出来
第一部分:
t11.type in ('1','2')
and t11.maType='2'
and t22.busType in ('4','6','7')
第二部分:
t11.maType'2'
不知道你明白没?

相当于
A && (B || C) A为真,B和C中有一个为真结果为真 false && (false || true) 结果是false
如果是
A && B || C 相当于 (A && B) || C false && false || true 结果是true
和你这sql 一样的道理,优先级问题
and相当这里的&& ;or相当||

and 不就是并且吗 条件a and 条件b 就是既要满足条件a又要满足条件b的数据
你这个sql是说t22.num不能为空 并且要满足 t11.type 不是1就是2
并且 t11.maType=2
并且 t22.busType 要是4,5,6中的一个
或者 t11.maType 不等于2
的数据
and() 我觉得只是为了...

全部展开

and 不就是并且吗 条件a and 条件b 就是既要满足条件a又要满足条件b的数据
你这个sql是说t22.num不能为空 并且要满足 t11.type 不是1就是2
并且 t11.maType=2
并且 t22.busType 要是4,5,6中的一个
或者 t11.maType 不等于2
的数据
and() 我觉得只是为了将括号中的条件 与其他条件分开来。

收起

oracle and里面嵌套and问题我想知道and()这个语法是什么意思?还有and t22.busType in ('4','6','7') or t11.maType'2'这个语法是什么意思?and t22.num is not null and (t11.type in ('1','2') and t11.maType='2' and t22.busType Oracle 8,and 9 oracle and id 是啥意思 oracle >= and= startTimeand time oracle 中 OR与哪个可以实现同样作用 in; BETWEEN...AND...; LIKE;AND 请教EXCEL中关MEDIAN函数嵌套条件的一个问题我要求B列的中位数,但是条件为:A列的数值大于1但小于9,我用的公式是=median(if(and(A1:A11>1,A1:A11<9),B1:B11)),为什么得到的结果是0呢?但是假设我用 if函数嵌套问题45% EXCEL函数中,IF,AND,OR嵌套问题,多个条件公式如何表达条件是:若 F5>=D5,E5>=C5,H5>=G5 则 800若 F5 英语翻译Oracle is buying half body parts and trying to make a body out of it. ORACLE中between…and...是SQL语句中的吗?还是仅限于SQL*PLUS里? oracle BETWEEN and 包含边界值吗?=B 还是 B between and 在oracle 9i中的范围是包括两端的值么? 英语翻译developed with Microsoft,Java,Web,SAP,Oracle and many other distributed technologies具体看下? oracle有and not这个用法吗语句:select a.* from a where a.num='12' and a.name='34'其中and后面加个not oracle 中 1 and 2 or 3 执行顺序会顺序执行吗?修改下:1 and 2 or 3 and 4 是这个 excel函数if嵌套次数太多,可不可以帮我精简一下?=IF(AND(D6=A,E6=初级),220,IF(AND(D6=A,E6=中级),280,IF(AND(D6=A,E6=高级),340,IF(AND(D6=A,E6=技师),460,IF(AND(D6=A,E6=高级技师),500,IF(AND(D6=B,E6=初级 oracle 语句 查询优化select count(*),sum(bal) from rpt_xd where substr(beg_date,5,2)= substr('20130131',5,2) and substr(beg_date,1,4)=substr('20130131',1,4) and term_mon3 and term_mon6 and term_mon12能不能帮我弄成一句话啊 这样分着 oracle 查询优化select count(*),sum(bal) from rpt_xd where substr(beg_date,5,2)= substr('20130131',5,2) and substr(beg_date,1,4)=substr('20130131',1,4) and term_mon3 and term_mon6 and term_mon12各位能帮我把它变成一句话吗 只有