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

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

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

    Decode360's Blog

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

      BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 ::  :: 管理 ::
      302 隨筆 :: 26 文章 :: 82 評論 :: 0 Trackbacks
    http://www.itpub.net/viewthread.php?tid=981654&extra=&page=1
    ?
    大牛寫的這兩段SQL實在是太銷魂了,實在是忍不住要轉(zhuǎn)載過來,留著以后慢慢看,太牛了……
    ?
    ?
    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
    主站蜘蛛池模板: 国产免费丝袜调教视频| 国产高清免费在线| 亚洲国产精品日韩av不卡在线| 波多野结衣中文一区二区免费| 国产在线精品观看免费观看| 亚洲明星合成图综合区在线| 免费观看日本污污ww网站一区| 国产又大又粗又硬又长免费 | 在线观看免费人成视频| 视频一区在线免费观看| 在线不卡免费视频| 一边摸一边爽一边叫床免费视频| 亚洲综合一区二区国产精品| 日日操夜夜操免费视频| 日韩免费在线视频| 久久亚洲精品成人无码网站| 国产精品冒白浆免费视频| 久久大香伊焦在人线免费| 理论秋霞在线看免费| 亚洲视频免费播放| 亚洲综合色区在线观看| 在线观看免费高清视频| 免费人成在线观看视频高潮| 亚洲AV无码一区二区大桥未久 | 性色av极品无码专区亚洲| 久久综合日韩亚洲精品色| 国产高清在线免费视频| 免费黄色网址网站| 国产一级婬片A视频免费观看| 国产AV旡码专区亚洲AV苍井空| 亚洲人成网77777色在线播放| 日本高清免费不卡在线| 真人做A免费观看| 国产一区二区三区免费观在线| 久久水蜜桃亚洲AV无码精品| 亚洲天堂一区二区三区四区| 亚洲精品美女久久777777| 可以免费观看一级毛片黄a| 野花高清在线观看免费完整版中文 | 亚洲免费福利在线视频| 久久亚洲日韩看片无码|