34,590
社区成员
发帖
与我相关
我的任务
分享
select a.Estimated_Arrival_Date_s from (
select estimated_arrival_date Estimated_Arrival_Date_s from Is_Issues_Plan_Detail)a
where Estimated_Arrival_Date_s='aa'
declare @T table (col varchar(1))
insert into @T
select 'a' union all
select 'b' union all
select 'c'
--order by 后面就可以用别名
select col a from @T order by a
--where后面用别名的话就需要嵌套一层
select col a from @T where a='b'
/*
Invalid column name 'a'.
*/