锘??xml version="1.0" encoding="utf-8" standalone="yes"?>高清免费观看在线,可以在线观看的av,日韩亚洲国产免费http://www.aygfsteel.com/17th/zh-cnWed, 18 Jun 2025 17:23:49 GMTWed, 18 Jun 2025 17:23:49 GMT60Several oracle tipshttp://www.aygfsteel.com/17th/archive/2007/09/12/144595.html17th17thWed, 12 Sep 2007 11:50:00 GMThttp://www.aygfsteel.com/17th/archive/2007/09/12/144595.htmlhttp://www.aygfsteel.com/17th/comments/144595.htmlhttp://www.aygfsteel.com/17th/archive/2007/09/12/144595.html#Feedback0http://www.aygfsteel.com/17th/comments/commentRss/144595.htmlhttp://www.aygfsteel.com/17th/services/trackbacks/144595.htmlThis query will return a string in a vertical format.
SELECT SUBSTR('&&String', ROWNUM, 1)
FROM all_objects
WHERE ROWNUM <= LENGTH(TRIM('&STRING'));

Prints a Calendar for the Current Year

This tip comes from Robert Ware, a DBA at TekSystems, in St. Louis, Missouri.
This tip prints a calendar for the current year. It can be modified to return other years as well.
select lpad( Month, 20-(20-length(month))/2 ) month,
"Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"
from (select to_char(dt,'fmMonthfm YYYY') month,
CASE when to_char(dt,'fmMonthfm YYYY') like 'Dec%' AND to_char(dt+1,'iw') = '01' then '53'
when to_char(dt,'fmMonthfm YYYY') like 'Jan%' AND to_char(dt+1,'iw') = '53' then '.5'
else to_char(dt+1,'iw')
END week,
max(decode(to_char(dt,'d'),'1',lpad(to_char(dt,'fmdd'),2))) "Su",
max(decode(to_char(dt,'d'),'2',lpad(to_char(dt,'fmdd'),2))) "Mo",
max(decode(to_char(dt,'d'),'3',lpad(to_char(dt,'fmdd'),2))) "Tu",
max(decode(to_char(dt,'d'),'4',lpad(to_char(dt,'fmdd'),2))) "We",
max(decode(to_char(dt,'d'),'5',lpad(to_char(dt,'fmdd'),2))) "Th",
max(decode(to_char(dt,'d'),'6',lpad(to_char(dt,'fmdd'),2))) "Fr",
max(decode(to_char(dt,'d'),'7',lpad(to_char(dt,'fmdd'),2))) "Sa"
from (select trunc(sysdate,'y')-1+rownum dt
from all_objects
where rownum <= add_months(trunc(sysdate,'y'),12) - trunc(sysdate,'y'))
group by to_char(dt,'fmMonthfm YYYY'), to_char( dt+1, 'iw' )
order by to_char(dt+1,'iw'))
order by to_date( month, 'Month YYYY' ), to_number(week)
/


17th 2007-09-12 19:50 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 札达县| 三台县| 安多县| 栖霞市| 迭部县| 泰宁县| 衡阳县| 邯郸县| 广昌县| 进贤县| 昌宁县| 图们市| 安远县| 常德市| 永顺县| 麻城市| 湖南省| 南召县| 尤溪县| 太谷县| 台北县| 潞西市| 利川市| 樟树市| 乌什县| 会宁县| 青神县| 扶余县| 吴忠市| 莱州市| 景宁| 大连市| 来宾市| 英超| 杨浦区| 依安县| 汝南县| 兴文县| 营山县| 白朗县| 永仁县|