select rybh,rymc,csrq as sr from rydm where csrq is not null

解决方案 »

  1.   

    select rybh,rymc,(......表达式....) as sr from rydm where ...难道我要用如此长的表达式作搜索?
      

  2.   

    select * from (select rybh,rymc,csrq as sr from rydm) b where b.sr is not null
      

  3.   

    可以这样的
    select * from (select rybh,rymc,csrq as sr from rydm) a where a.sr is not null
      

  4.   

    哦,没看到三楼以经回答过了,Sorry