0<1000,1<1000,2<1000都是真命题,以上等同 select * from table1;

解决方案 »

  1.   

    就是判断条件是真还是假,
    条件是真的时候才能检索到数据:如:
    select * from tablename where 1=1      --1=1在什么状态下都是成立的
    select * from tablename where 1=2      --1=2在什么条件下都不成立,所以这
                                             句查不到数据.--这种用法在调试程序的时候方便,还有一些特殊的地方要用.比如,想有表有数据,然后建一个表和该表一样的结构,但是不需要有数据.就可以这么做:create table test_c as select * from testc where 1=2
      

  2.   

    select * from table1 where 0<1000;
    select * from table1 where 1<1000;
    select * from table1 where 2<1000;
    一句話就是等于select * from table1
      

  3.   

    select * from table1 where 0<1000;
    select * from table1 where 1<1000;
    select * from table1 where 2<1000;
    ......
    不是简单的等同于select * from table1如果0,1,2都是由变量得来的,就可以利用这样的语句得到语句执行的次数
      

  4.   

    好像不那么简单!
    我记得oracle的管理员考试上有类似的题目,大家可以去看看