select a as xxx from tab物料 where xxx='234'
--------------------
你可以改成这样:
select * from (select a as xxx from tab物料) a where xxx='234'

解决方案 »

  1.   

    select * from (select a as xxx from tab物料) a where xxx='234'
    这得应用派生表,注意指定表的别名a,否则系统提示错误。
      

  2.   

    select a as xxx from tab物料 where xxx='234'
    在运行时where xxx='234'中的xxx必须在操作表中存在。而它却是在完成操作之后的结果表中出现的。
      

  3.   

    where 是从from中取字段,而不是从结果中.
      

  4.   

    和ACCESS的查询不一样呀,ACCESS没有这些。TSQL有点麻烦哩。