<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) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): 數(shù)據(jù)庫(kù)

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

    導(dǎo)航

    統(tǒng)計(jì)

    常用鏈接

    留言簿(1)

    隨筆分類(lèi)

    隨筆檔案

    文章檔案

    搜索

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: a级毛片免费观看视频| 亚洲熟妇AV乱码在线观看| 日韩精品无码一区二区三区免费| 亚洲精品无码久久毛片| 免费人妻精品一区二区三区| 国产成人高清精品免费鸭子| 在线a亚洲v天堂网2019无码| 国产日韩AV免费无码一区二区三区 | 亚洲熟女乱综合一区二区| EEUSS影院WWW在线观看免费| 国产亚洲美日韩AV中文字幕无码成人| 国产亚洲女在线线精品| 亚洲国产一区二区三区| 91免费福利视频| 亚洲短视频男人的影院| 亚洲喷奶水中文字幕电影| 黄页网站免费观看| 亚洲精品国产精品| 亚洲人成无码网站久久99热国产| 男女一进一出抽搐免费视频| 亚洲第一区香蕉_国产a| 国产在线观看片a免费观看| 亚洲AV综合色区无码一二三区| 亚洲国产成人久久综合一区77 | 毛片在线看免费版| 亚洲av综合日韩| 日韩版码免费福利视频| 亚洲综合激情五月色一区| 免费在线观看的黄色网址| jizz免费一区二区三区| 91久久亚洲国产成人精品性色 | 亚洲风情亚Aⅴ在线发布| 亚洲精品尤物yw在线影院| 国产午夜无码精品免费看| 亚洲av无码片在线观看| 亚洲av无码国产精品色在线看不卡 | 亚洲综合视频在线观看| 国产无遮挡吃胸膜奶免费看视频| 久久久精品视频免费观看| 亚洲在成人网在线看| 57pao国产成永久免费视频|