如何给子查询命名?
例如:
select * from (select a1,b1,c1 from table2)
给后面那个查询命名,以便在第一个SELECT 后使用。比如:
select table1.*,??.* from (select a1,b1,c1 from table2) ,table1
问号代表别名。
SQL Server中:
select * from (select a1,b1,c1 from table2) as 表名
Oracle:
select * from (select a1,b1,c1 from table2) 表名
—————————————————————————————————
MaximStr := 宠辱不惊,看庭前花开花落,去留无意;
毁誉由人,望天上云卷云舒,聚散任风。;
if Not Assigned(I) then
I := TI.Create(Nil);
I.Maxim := MaximStr;
I.Explain := 假如上述代码中出现“OA”、“3D”等字样,改为“=”或者去掉;
I.Desire := 加不加分随你;
—————————————————————————————————
楼上说的很对哦
要别名干什么,惹火冒了不要
关注