???
select name,produce from tbname where ...;

解决方案 »

  1.   

    例如
    select name,produce from tbname where produce =5;
    假设有5条数据,只有三条满足条件
    但还是要显示5条记录,只不过其中两条produce 显示为空
      

  2.   

    select name,produce from tbname where produce =5 union all
    select name,null procedure where procedure <>5;
      

  3.   

    select name,produce from tbname where produce =5 or produce is null;
      

  4.   

    改一下
    select name,decode(sign(produce-5),0,produce,null) from tbname ;