当前所在位置:珠峰网资料 >> 计算机 >> Oracle认证 >> 正文
Oracle中whereclause表达式的顺序
发布时间:2010/11/15 11:37:38 来源:www.xue.net 编辑:城市总裁吧
 今天调试半天where clause里面到底先执行什么,where A OR B AND C,居然先执行B AND C! 顿时觉得对SQL知道太少!那么复杂的都写出来但是这个基本的这个不知道,于是googling,原来如下:

  Expression in where clause process in following order:

  1.Arithmetic Operators

  2.Concatenation operators

  3.Comparison Conditions

  4.IS [NOT] NULL, LIKE, [NOT] IN

    5.[NOT] BETWEEN

  6.Not Equal To

  7.NOT Logical Condition

  8.AND Logical Condition

  9.OR Logical Condition

广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved