码迷,mamicode.com
首页 > 数据库 > 详细

oracle where后 and 和 or 的执行顺序

时间:2017-03-09 11:42:25      阅读:394      评论:0      收藏:0      [点我收藏+]

标签:nbsp   执行   table   rac   logs   ret   .com   where   select   

例子 

select X from table where 1=2 and 1=2 or 1=1;

return true;

select X from table where 1=2 and (1=2 or 1=1);

return false

 

 

原文:http://www.cnblogs.com/nick-huang/p/4027038.html 感谢分享

oracle where后 and 和 or 的执行顺序

标签:nbsp   执行   table   rac   logs   ret   .com   where   select   

原文地址:http://www.cnblogs.com/duyunchao-2261/p/6524419.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!