<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Using SET Operators.

    1 The Union Operator
    ?The union operator returns results form both queries after eliminating duplications.\
    ?select employee_id,job_id
    ?from employees
    ?uniion
    ?select employ_id ,job_id
    ?from job_history;
    2 the all operator
    ?The union all opertor reutrn result from both queries,including all duplications
    3 interset
    ?select ster_id,qty from sales where qty>20;
    ?intersect
    ?select ster_id,qty from sales where ster_id like '7%';
    4 minus
    ?select ster_id,qty from sales where qty>20
    ?minus
    ?select ster_id from sales where ster_id like '7%'

    5 set operator guidelines
    ?. teh expressions in the select list must match in number and data type;
    ?. Parentheses can be used to alter the sequence of the execution
    ?.The order by clause:
    ??? can appear only at the very end of the statement
    ??? will accept the column name,aliases from thee firest select statement ,or thee positional notation
    ?.Duplicate row are atuomatically eliminated except in union all.
    ?.Column names from the first query appear in the result
    ?.The output is sorted in ascending order by default except in union all
    6 matching the select statement
    ?select department_id,to_number(null),location,hire_date
    ?from employees
    ?union
    ?select department_id,location_id,to_date(null)
    ?from departments;

    ?select employee_id,job_id,salary
    ?from employees
    ?union
    ?select employee_id,job_id,0
    ?from job_history;
    7 Controlling the order of the rows
    ?select 'sing' as "my dream" ,3,a_dummy
    ?from dual
    ?union
    ?select 'like''d like to teach',1
    ?from dual
    ?union
    ?select 'the world to',2
    ?from dual
    ?order by 2;

    posted on 2006-10-11 14:51 康文 閱讀(230) 評論(0)  編輯  收藏 所屬分類: 數(shù)據(jù)庫

    <2006年10月>
    24252627282930
    1234567
    891011121314
    15161718192021
    22232425262728
    2930311234

    導(dǎo)航

    統(tǒng)計

    常用鏈接

    留言簿(1)

    隨筆分類

    隨筆檔案

    文章檔案

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 久久国产亚洲精品麻豆| 日韩一级视频免费观看| a级毛片免费完整视频| 一个人免费观看视频在线中文| 一个人晚上在线观看的免费视频 | 99人中文字幕亚洲区| 亚洲精品国产专区91在线| 日韩亚洲产在线观看| 免费看内射乌克兰女| 永久免费视频网站在线观看| 成人免费毛片视频| 亚洲一区二区三区影院 | 九九精品国产亚洲AV日韩| 一级特黄录像免费播放肥| 毛片免费全部播放无码| 亚洲经典在线观看| 免费99精品国产自在现线| 亚洲综合另类小说色区色噜噜| 亚洲国产精品久久久久秋霞影院 | 中日韩亚洲人成无码网站| 最近中文字幕mv免费高清视频7| 亚洲一区二区三区成人网站| 最好免费观看高清在线| 日韩成人免费aa在线看| 老湿机一区午夜精品免费福利| 最近中文字幕无免费| 亚洲精品成人久久久| 亚洲高清免费在线观看| 99精品视频免费| 久久亚洲sm情趣捆绑调教| 一级女人18毛片免费| 国产亚洲女在线线精品| 毛片免费在线播放| 色哟哟国产精品免费观看| 免费无遮挡无码视频网站| 亚洲国产精品久久久久网站| a色毛片免费视频| 亚洲在成人网在线看| 免费A级毛片无码A| 黄页免费视频播放在线播放| 久久久久亚洲AV成人无码网站 |