<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 康文 閱讀(225) 評論(0)  編輯  收藏 所屬分類: 數據庫

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

    導航

    統計

    常用鏈接

    留言簿(1)

    隨筆分類

    隨筆檔案

    文章檔案

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 四虎1515hh永久久免费| 免费无码中文字幕A级毛片| 国产偷窥女洗浴在线观看亚洲| 亚洲乱码一二三四区麻豆| 免费大片黄在线观看yw| 亚洲国产人成中文幕一级二级| 亚洲AV成人片无码网站| 又大又粗又爽a级毛片免费看| 亚洲日韩aⅴ在线视频| 在线免费观看h片| 亚洲AV无码专区国产乱码4SE| 七色永久性tv网站免费看| 97se亚洲综合在线| 99在线视频免费观看视频| 亚洲欧美国产国产一区二区三区| 成人免费视频一区二区三区| 久久久久亚洲AV无码去区首| 亚洲免费一区二区| 国产高清不卡免费视频| 亚洲精品视频在线观看视频| 成年男女男精品免费视频网站| 久久久久久亚洲av无码蜜芽| 亚洲日本韩国在线| 九九精品国产亚洲AV日韩| 亚洲中文字幕无码爆乳av中文| 最好免费观看高清在线| 亚洲国产av美女网站| 日本免费人成黄页网观看视频| 一级做a爰片久久毛片免费看| 亚洲成人免费在线| 成人免费无码大片A毛片抽搐色欲| 色窝窝亚洲av网| 亚洲中文字幕日产乱码高清app| 人妻丰满熟妇无码区免费| 亚洲精品宾馆在线精品酒店| 国产成人精品久久亚洲| 99在线精品视频观看免费| 免费精品久久久久久中文字幕| 久久精品国产亚洲AV麻豆不卡 | 三级毛片在线免费观看| 亚洲视频欧洲视频|