select a as xxx from tab物料 where xxx='234'
--------------------
你可以改成这样:
select * from (select a as xxx from tab物料) a where xxx='234'
--------------------
你可以改成这样:
select * from (select a as xxx from tab物料) a where xxx='234'
这得应用派生表,注意指定表的别名a,否则系统提示错误。
在运行时where xxx='234'中的xxx必须在操作表中存在。而它却是在完成操作之后的结果表中出现的。