哇,union的优先级很高嘛
生活随笔
收集整理的這篇文章主要介紹了
哇,union的优先级很高嘛
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
原來,union的優先級很高。比如
select stdname,[subject]='化學',化學 as score from #student2 union all select stdname,[subject]='數學',數學 as score from #student2 union all select stdname,[subject]='物理',物理 as score from #student2 union all select stdname,[subject]='語文',語文 as score from #student2 order by stdname,[subject]等同于select * from( select stdname,[subject]='化學',化學 as score from #student2 union all select stdname,[subject]='數學',數學 as score from #student2 union all select stdname,[subject]='物理',物理 as score from #student2 union all select stdname,[subject]='語文',語文 as score from #student2 ) as a order by stdname,[subject]
轉載于:https://www.cnblogs.com/leftfist/archive/2013/06/15/4258014.html
總結
以上是生活随笔為你收集整理的哇,union的优先级很高嘛的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android AIDL的实现
- 下一篇: 解决X64操作系统PL/SQL连接报错问