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

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

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

    Decode360's Blog

    業精于勤而荒于嬉 QQ:150355677 MSN:decode360@hotmail.com

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 ::  :: 管理 ::
      302 隨筆 :: 26 文章 :: 82 評論 :: 0 Trackbacks
    http://www.itpub.net/viewthread.php?tid=981654&extra=&page=1
    ?
    大牛寫的這兩段SQL實在是太銷魂了,實在是忍不住要轉載過來,留著以后慢慢看,太牛了……
    ?
    ?
    with a as (select distinct round(a.x + b.x) x,round(a.y + b.y) y from
    (select (sum(x) over(order by n)) x,
    ? ?? ?? ?? ?? ?? ?? ?? ?? ? round(sum(y) over(order by n)) y
    ? ?? ?? ?? ???from (select n, cos(n/30 * 3.1415926)*2??x,
    ? ?? ?? ?? ?? ?? ?? ?? ?? ?sin(n/30 * 3.1415926) y
    ? ?? ?? ?? ?? ?? ?? ?? ?? ?from (select rownum - 1 n from all_objects where rownum <= 30 +30))) a,
    ? ?? ?? ?? ?(select n, (sum(x) over(order by n)) x,
    ? ?? ?? ?? ?? ?? ?? ?? ?? ? round(sum(y) over(order by n)) y
    ? ?? ?? ?? ???from (select n,
    ? ?? ?? ?? ?? ?? ?? ?? ?? ?cos( m /3 * 3.1415926) * 2 * 15 x,
    ? ?? ?? ?? ?? ?? ?? ?? ?? ?sin( m /3 * 3.1415926)* 15 y
    ? ?? ?? ?? ?? ?? ?? ? from (select case when rownum <= 2 then 3
    ? ?? ?? ?? ?? ?? ?? ? when rownum = 3 then -2 else -6 end m, rownum - 1 n
    ? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?from all_objects where rownum <= 5))) b
    ? ?? ?? ? )
    select replace(sys_connect_by_path(point, '/'), '/', null) star
    ??from (select b.y, b.x, decode(a.x, null, ' ', '*') point
    ? ?? ?? ? from a,
    ? ?? ?? ?? ?? ?(select *
    ? ?? ?? ?? ?? ?? ?from (select rownum - 1 + (select min(x) from a) x
    ? ?? ?? ?? ?? ?? ?? ?? ???from all_objects
    ? ?? ?? ?? ?? ?? ?? ?? ? where rownum <= (select max(x) - min(x) + 1 from a)),
    ? ?? ?? ?? ?? ?? ?? ???(select rownum - 1 + (select min(y) from a) y
    ? ?? ?? ?? ?? ?? ?? ?? ???from all_objects
    ? ?? ?? ?? ?? ?? ?? ?? ? where rownum <= (select max(y) - min(y) + 1 from a))) b
    ? ?? ?? ?where a.x(+) = b.x
    ? ?? ?? ???and a.y(+) = b.y)
    where x = (select max(x) from a)
    start with x = (select min(x) from a)
    connect by y = prior y
    ? ?? ? and x = prior x + 1;
    ?
    ?

    ????????????? * * * * * *?????????????????? * * * * * *?????????????????? * * * * * *?????????????
    ????????? * *???????????? * *?????????? * *???????????? * *?????????? * *???????????? * *?????????
    ?????? * *?????????????????? * *???? * *?????????????????? * *???? * *?????????????????? * *??????
    ???? *?????????????????????????? * *?????????????????????????? * *?????????????????????????? *????
    ?? **??????????????????????????? ***?????????????????????????? ***??????????????????????????? **??
    ? *???????????????????????????? *?? *???????????????????????? *?? *???????????????????????????? *?
    ?*???????????????????????????? *???? *?????????????????????? *???? *???????????????????????????? *
    ?*???????????????????????????? *???? *?????????????????????? *???? *???????????????????????????? *
    *???????????????????????????? *?????? *???????????????????? *?????? *???????????????????????????? *
    *???????????????????????????? *?????? *???????????????????? *?????? *???????????????????????????? *
    *???????????????????????????? *?????? *???????????????????? *?????? *???????????????????????????? *
    *???????????????????????????? *?????? *???????????????????? *?????? *???????????????????????????? *
    ?*???????????????????????????? *???? *?????????????????????? *???? *???????????????????????????? *
    ?*?????????????????????????? * * * * * *?????????????????? * * * * * *?????????????????????????? *
    ? *????????????????????? * *??? *?? *??? * *?????????? * *??? *?? *??? * *????????????????????? *?
    ?? *????????????????? * *??????? * *??????? * *???? * *??????? * *??????? * *????????????????? *??
    ??? **????????????? *??????????? ***??????????? * *??????????? ***??????????? *????????????? **???
    ?????? *????????? **?????????? *???? *????????? ***????????? *???? *?????????? **????????? *??????
    ???????? ** *??? *??????? * **???????? ** *??? *?? *??? * **???????? ** *??????? *??? * **????????
    ????????????? * * * * * *?????????????????? * * * * * *?????????????????? * * * * * *?????????????
    ??????????????? *???????????????????????????? *???? *???????????????????????????? *???????????????
    ?????????????? *???????????????????????????? *?????? *???????????????????????????? *??????????????
    ?????????????? *???????????????????????????? *?????? *???????????????????????????? *??????????????
    ?????????????? *???????????????????????????? *?????? *???????????????????????????? *??????????????
    ?????????????? *???????????????????????????? *?????? *???????????????????????????? *??????????????
    ??????????????? *???????????????????????????? *???? *???????????????????????????? *???????????????
    ??????????????? *???????????????????????????? *???? *???????????????????????????? *???????????????
    ???????????????? *???????????????????????????? *?? *???????????????????????????? *????????????????
    ????????????????? *???????????????????????????? * *???????????????????????????? *?????????????????
    ?????????????????? **?????????????????????????? ***?????????????????????????? **??????????????????
    ????????????????????? *?????????????????????? *???? *?????????????????????? *?????????????????????
    ??????????????????????? ** *???????????? * **???????? ** *???????????? * **???????????????????????
    ???????????????????????????? * * * * * *?????????????????? * * * * * *????????????????????????????
    ?
    with a as (
    ??????????? select distinct round(sum(x) over(order by n)) x,
    ??????????????????????????? round(sum(y) over(order by n)) y
    ????????????? from (select n,
    ?????????????????????????? cos(trunc(n / 20) * (1-1/5) * 3.1415926) * 2 x,
    ?????????????????????????? sin(trunc(n / 20) * (1-1/5) * 3.1415926) y
    ????????????????????? from (select rownum - 1 n from all_objects where rownum <= 20 * 5))
    ????????? )
    select replace(sys_connect_by_path(point, '/'), '/', null) star
    ? from (select b.y, b.x, decode(a.x, null, ' ', '*') point
    ????????? from a,
    ?????????????? (select *
    ????????????????? from (select rownum - 1 + (select min(x) from a) x
    ????????????????????????? from all_objects
    ???????????????????????? where rownum <= (select max(x) - min(x) + 1 from a)),
    ?????????????????????? (select rownum - 1 + (select min(y) from a) y
    ????????????????????????? from all_objects
    ???????????????????????? where rownum <= (select max(y) - min(y) + 1 from a))) b
    ???????? where a.x(+) = b.x
    ?????????? and a.y(+) = b.y)
    where x = (select max(x) from a)
    start with x = (select min(x) from a)
    connect by y = prior y
    ?????? and x = prior x + 1;



    ??????????????????? *???????????????????
    ?????????????????? * *??????????????????
    ?????????????????? * *??????????????????
    ????????????????? *?? *?????????????????
    ???????????????? **?? **????????????????
    ??????????????? *?????? *???????????????
    ??????????????? *?????? *???????????????
    * * * * * * * *** * * * *** * * * * * * *
    ? **????????? *?????????? *????????? **?
    ???? **?????? *?????????? *?????? **????
    ??????? *??? *???????????? *??? *???????
    ????????? ** *???????????? * **?????????
    ??????????? ** *???????? * **???????????
    ?????????? *??? * *?? * *??? *??????????
    ?????????? *?????? * *?????? *??????????
    ????????? *????? * * * *????? *?????????
    ???????? *??? * *?????? * *??? *????????
    ???????? *? *?????????????? *? *????????
    ??????? ** *???????????????? * **???????
    ??????? *?????????????????????? *???????
    ?
    ?
    ?
    ?
    ?



    -The End-

    posted on 2008-11-01 19:47 decode360-3 閱讀(274) 評論(0)  編輯  收藏 所屬分類: SQL Dev
    主站蜘蛛池模板: 1000部拍拍拍18勿入免费视频软件 | 野花高清在线电影观看免费视频| 亚洲中文字幕无码中文字在线| 国产精品亚洲а∨无码播放不卡| 免费看美女让人桶尿口| 2020亚洲男人天堂精品| 美女视频黄免费亚洲| 亚洲国产综合在线| 成年大片免费视频| 亚洲AV成人精品一区二区三区| 免费无码又爽又刺激高潮 | fc2成年免费共享视频18| 亚洲 自拍 另类小说综合图区| 免费看内射乌克兰女| 精品亚洲成α人无码成α在线观看| 男女一进一出抽搐免费视频 | 亚洲国产精品成人一区| 亚州**色毛片免费观看| 亚洲理论电影在线观看| 国产免费无码一区二区| 91亚洲国产在人线播放午夜| 1000部拍拍拍18勿入免费视频软件 | 亚洲国产综合精品中文字幕| 国产午夜无码片免费| 久久精品国产亚洲AV无码娇色| 四虎永久在线观看免费网站网址| 99久久国产亚洲综合精品| 亚洲AⅤ优女AV综合久久久| a级毛片免费观看视频| 亚洲无线一二三四区| 日本特黄特色aa大片免费| 一区二区三区免费在线视频| 久久久久亚洲精品影视| 美女视频黄的全免费视频| 国产亚洲视频在线观看网址| 综合亚洲伊人午夜网| 曰批视频免费30分钟成人| 污网站在线免费观看| 亚洲精品国产肉丝袜久久| 国产一区视频在线免费观看| 国产成人免费AV在线播放|