select DECODE(tc.FInvalidDate>(select sysdate from dual),true,1,0) from t_org_company tc比较该怎么写??????

解决方案 »

  1.   

    select DECODE(tc.FInvalidDate>sysdate,1,0) aa
    from t_org_company tc 
    where tc.FInvalidDate is not null或
    select case when tc.FInvalidDate>sysdate then 1 else 0 end aa
    from t_org_company tc 
    where tc.FInvalidDate is not null
      

  2.   

    有误了....
    select DECODE(tc.FInvalidDate>sysdate,true,1,0) aa 
    from t_org_company tc 
    where tc.FInvalidDate is not null 或 
    select case when tc.FInvalidDate>sysdate then 1 else 0 end aa 
    from t_org_company tc 
    where tc.FInvalidDate is not null 
      

  3.   


    select DECODE(sign(tc.FInvalidDate-sysdate),1,1,0) from t_org_company tc 
      

  4.   

    oracle  ,
    还是缺失右刮号
      

  5.   

    把出错整段SQL贴出来看一下啊5楼SQL很标准了