另一个例子
- select * from DUAL where (null=0 or 1=1);
- is the same as:
- select * from DUAL where (UNKNOWN or TRUE);
- is the same as:
- select * from DUAL where (UNKNOWN) or (TRUE);
- is the same as:
- select * from DUAL where (TRUE);
- however,
- select * from DUAL where not (null=1 or 1=0);
- is the same as:
- select * from DUAL where not (UNKNOWN or FALSE);
- is the same as:
- select * from DUAL where not (UNKNOWN) or not (FALSE);
- is the same as:
- select * from DUAL where not (UNKNOWN) or (TRUE);
- is the same as:
- select * from DUAL where (UNKNOWN) or (TRUE);
- is the same as:
- select * from DUAL where (TRUE);
转自:
阅读(1778) | 评论(0) | 转发(0) |