[SQL ] 请教Union

楼主: skaurawind (皇甫茯苓)   2018-02-06 10:02:28
数据库名称:Sql Server
数据库版本:2012
内容/问题描述:
有两张Table有相同值的字段,使用union取出唯一值
select union select会取出一笔
但执行
select into #temp union select,会insert多笔?
请指教,谢谢
作者: shuangrain (粗奶丸)   2018-02-14 20:46:00
Insert into #tmp (select union select)

Links booklink

Contact Us: admin [ a t ] ucptt.com