select * from (select....)

Abstract: select * from (select ....)


Writing project just encountered use select * from (select ....)


select * from(
select distinct[产品编号],[车台编号],[模具编号表表号], 生产数量,序号 
 FROM [dbo].[Stock模具耗损统计表] ) as temptable

--请加入 as 表单别名(temptable) 不然会显示 Incorrect syntax near ')'. 错误



Personal feeling is almost used up temptable, as in the use of the temporary form

but still the reference method temptable relatively often see it!
Http://www.dotblogs.com.tw/hellouk/archive/2010/10/07/18163 the .aspx
http://social.msdn.microsoft.com/Forums/zh-TW/240/thread/850f5bf2-79b5-4f32-ba40-0bba2db1e929
http://cbw0731.pixnet.net/blog/post/24993864-% E6% 9A% AB% E5% AD% 98% E8% A1% A8 (temporary-tables)% E7% 9A% 84% E4% BD% BF% E7% 94% A8% E7% B0% A1% E4% BB % 8B

We join together blogads earn pocket money !!

Original: Large column  select * from (select ....)


Guess you like

Origin www.cnblogs.com/chinatrump/p/11458238.html
Recommended