mhinze.com archive

this is an archive of the old blog, ended 6/16/08





    29
    Nov

    Have a PL/SQL Christmas

    
    select decode
           ( sign(floor(maxwidth/2)-rownum)
           , 1, lpad( ' ', floor(maxwidth/2)-(rownum-1))
           || rpad( '*', 2*(rownum-1)+1, ' *')
           , lpad( '* * *', floor(maxwidth/2)+3))
    from all_objects, (select 40 as maxwidth from dual)
    where rownum < floor(maxwidth/2) +5;
    



    Leave a Reply

    You must be logged in to post a comment.

    © 2007 mhinze.com