锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产精品久久久久婷婷老年,成人亚洲国产精品久久,亚洲国产专区一区http://www.tkk7.com/wuxufeng8080/category/20016.htmlzh-cnFri, 09 Mar 2007 03:13:44 GMTFri, 09 Mar 2007 03:13:44 GMT60綆鍗曠殑ORACLE鍒嗛〉sql璇彞(ZT) http://www.tkk7.com/wuxufeng8080/articles/102609.html椋庝漢鍥?/dc:creator>椋庝漢鍥?/author>Thu, 08 Mar 2007 07:55:00 GMThttp://www.tkk7.com/wuxufeng8080/articles/102609.html

select * from (select rownum rdd,t_table.* from t_table where rownum<=8) where聽 rdd>6



]]>
oracle 鏃ユ湡澶勭悊http://www.tkk7.com/wuxufeng8080/articles/102302.html椋庝漢鍥?/dc:creator>椋庝漢鍥?/author>Wed, 07 Mar 2007 01:02:00 GMThttp://www.tkk7.com/wuxufeng8080/articles/102302.html鏍煎紡杞寲錛?/font>
select to_char(sysdate,'mm/dd/yy') from dual
鍏朵腑sysdate鏄郴緇熸棩鏈燂紝浣犲彲鎹㈡垚琛ㄤ腑鐨勫瓧孌?br />
鏃ユ湡姣旇緝錛?/font>
鏃ユ湡瀛楁鐩存帴鐩稿噺錛岃幏寰楃殑灝辨槸浠ュぉ涓哄崟浣嶇殑鏃墮棿闂撮殧
select floor(to_date('2004-12-03','yyyy-mm-dd') - to_date('2004-8-8','yyyy-mm-dd')) from dual

榪欐牱灝辮綆楀嚭鏉ヤ簡~~~
select * from aa_temp where idate> to_date('1996-01-01','yyyy-mm-dd')

瑕佹壘鏌愭棩鏈熷瓧孌靛ぇ浜庝竴涓浐瀹氭棩鏈熺殑璁板綍錛屼互涓?縐嶅啓娉曪細
to_date('2007-02-01 09:00:00','yyyy-mm-dd hh24:mi:ss')<瀛楁鍚?img src ="http://www.tkk7.com/wuxufeng8080/aggbug/102302.html" width = "1" height = "1" />

]]>
Oracle鑷瀛楁鐨勫疄鐜?/title><link>http://www.tkk7.com/wuxufeng8080/articles/101845.html</link><dc:creator>椋庝漢鍥?/dc:creator><author>椋庝漢鍥?/author><pubDate>Mon, 05 Mar 2007 02:28:00 GMT</pubDate><guid>http://www.tkk7.com/wuxufeng8080/articles/101845.html</guid><description><![CDATA[鏈榪戝湪鍋氱郴緇熺殑Oracle縐繪錛岄渶瑕佷粠MySQL縐繪鍒癘racle涓紝鍦∕ySQL涓湁鑷綾誨瀷鐨勫瓧孌碉紝鍦∣racle涓嵈娌℃湁錛岄渶瑕佺敤鍏跺畠鐨勫姙娉曞疄鐜般傚湪Oracle涓鐢ㄤ竴涓猄EQUENCE鍜岃Е鍙戝櫒瀹炵幇銆備笅闈㈡槸鎴戠殑涓涓疄鐜幫細<br /><div style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"><div><span style="COLOR: #008080">聽1</span><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">CREATE</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">TABLE</span><span style="COLOR: #000000">聽FOO<br /></span><span style="COLOR: #008080">聽2</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />(<br /></span><span style="COLOR: #008080">聽3</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽</span><span style="COLOR: #0000ff">INDEX</span><span style="COLOR: #000000">聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="FONT-WEIGHT: bold; COLOR: #000000">INT</span><span style="COLOR: #000000">聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #808080">NOT</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">NULL</span><span style="COLOR: #000000">,<br /></span><span style="COLOR: #008080">聽4</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽ABC聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="FONT-WEIGHT: bold; COLOR: #000000">VARCHAR2</span><span style="COLOR: #000000">(</span><span style="FONT-WEIGHT: bold; COLOR: #800000">128</span><span style="COLOR: #000000">),<br /></span><span style="COLOR: #008080">聽5</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽DEF聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="FONT-WEIGHT: bold; COLOR: #000000">VARCHAR2</span><span style="COLOR: #000000">(</span><span style="FONT-WEIGHT: bold; COLOR: #800000">128</span><span style="COLOR: #000000">),<br /></span><span style="COLOR: #008080">聽6</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽</span><span style="COLOR: #0000ff">PRIMARY</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">KEY</span><span style="COLOR: #000000">聽(INDEXID)<br /></span><span style="COLOR: #008080">聽7</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />)聽TABLESPACE聽</span><span style="COLOR: #0000ff">TEMP</span><span style="COLOR: #000000">;<br /></span><span style="COLOR: #008080">聽8</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /></span><span style="COLOR: #008080">聽9</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">CREATE</span><span style="COLOR: #000000">聽SEQUENCE聽FOO_INDEXID聽INCREMENT聽</span><span style="COLOR: #0000ff">BY</span><span style="COLOR: #000000">聽</span><span style="FONT-WEIGHT: bold; COLOR: #800000">1</span><span style="COLOR: #000000">聽START聽</span><span style="COLOR: #0000ff">WITH</span><span style="COLOR: #000000">聽</span><span style="FONT-WEIGHT: bold; COLOR: #800000">1</span><span style="COLOR: #000000">聽MAXVALUE聽</span><span style="FONT-WEIGHT: bold; COLOR: #800000">999999999999</span><span style="COLOR: #000000">聽CYCLE聽NOCACHE;<br /></span><span style="COLOR: #008080">10</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /></span><span style="COLOR: #008080">11</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">CREATE</span><span style="COLOR: #000000">聽</span><span style="COLOR: #808080">OR</span><span style="COLOR: #000000">聽</span><span style="COLOR: #ff00ff">REPLACE</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">TRIGGER</span><span style="COLOR: #000000">聽INSERT_FOO_INDEXID<br /></span><span style="COLOR: #008080">12</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />BEFORE聽</span><span style="COLOR: #0000ff">INSERT</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">ON</span><span style="COLOR: #000000">聽FOO<br /></span><span style="COLOR: #008080">13</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />REFERENCING<br /></span><span style="COLOR: #008080">14</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽NEW聽</span><span style="COLOR: #0000ff">AS</span><span style="COLOR: #000000">聽new<br /></span><span style="COLOR: #008080">15</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽OLD聽</span><span style="COLOR: #0000ff">AS</span><span style="COLOR: #000000">聽old<br /></span><span style="COLOR: #008080">16</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">FOR</span><span style="COLOR: #000000">聽EACH聽ROW<br /></span><span style="COLOR: #008080">17</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">BEGIN</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">18</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">SELECT</span><span style="COLOR: #000000">聽FOO_INDEXID.NEXTVAL聽</span><span style="COLOR: #0000ff">INTO</span><span style="COLOR: #000000">聽:new.INDEXID聽</span><span style="COLOR: #0000ff">FROM</span><span style="COLOR: #000000">聽DUAL;<br /></span><span style="COLOR: #008080">19</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">END</span><span style="COLOR: #000000">;</span></div></div><img src ="http://www.tkk7.com/wuxufeng8080/aggbug/101845.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/wuxufeng8080/" target="_blank">椋庝漢鍥?/a> 2007-03-05 10:28 <a href="http://www.tkk7.com/wuxufeng8080/articles/101845.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>oracle 鏃ユ湡鍑芥暟浠嬬粛http://www.tkk7.com/wuxufeng8080/articles/99465.html椋庝漢鍥?/dc:creator>椋庝漢鍥?/author>Mon, 12 Feb 2007 07:39:00 GMThttp://www.tkk7.com/wuxufeng8080/articles/99465.html1銆乤dd_months()鐢ㄤ簬浠庝竴涓棩鏈熷煎鍔犳垨鍑忓皯涓浜涙湀浠?
date_value:=add_months(date_value,number_of_months)
渚嬶細
SQL> select add_months(sysdate,12) "Next Year" from dual;
聽聽
Next Year
----------
13-11鏈?04
聽聽
SQL> select add_months(sysdate,112) "Last Year" from dual;
聽聽
Last Year
----------
13-3鏈?-13
聽聽
SQL>聽聽
聽聽
2銆乧urrent_date()榪斿洖褰撳墠浼氭斁鏃跺尯涓殑褰撳墠鏃ユ湡
date_value:=current_date
SQL> column sessiontimezone for a15
SQL> select sessiontimezone,current_date from dual;
聽聽
SESSIONTIMEZONE CURRENT_DA
--------------- ----------
+08:00聽 聽聽 聽聽 聽 13-11鏈?03
聽聽
SQL> alter session set time_zone='-11:00'
聽 聽2聽聽/
聽聽
浼氳瘽宸叉洿鏀廣?
聽聽
SQL> select sessiontimezone,current_timestamp from dual;
聽聽
SESSIONTIMEZONE CURRENT_TIMESTAMP
--------------- ------------------------------------
-11:00聽 聽聽 聽聽 聽 12-11鏈?03 04.59.13.668000 涓嬪崍 -11:
聽 聽聽 聽聽 聽聽 聽聽 聽聽聽00
聽聽
SQL>聽聽
聽聽
3銆乧urrent_timestamp()浠imestamp with time zone鏁版嵁綾誨瀷榪斿洖褰撳墠浼氭斁鏃跺尯涓殑褰撳墠鏃ユ湡
timestamp_with_time_zone_value:=current_timestamp([timestamp_precision])
SQL> column sessiontimezone for a15
SQL> column current_timestamp format a36
SQL> select sessiontimezone,current_timestamp from dual;
聽聽
SESSIONTIMEZONE CURRENT_TIMESTAMP
--------------- ------------------------------------
+08:00聽 聽聽 聽聽 聽 13-11鏈?03 11.56.28.160000 涓婂崍 +08:
聽 聽聽 聽聽 聽聽 聽聽 聽聽聽00
聽聽
SQL> alter session set time_zone='-11:00'
聽 聽2聽聽/
聽聽
浼氳瘽宸叉洿鏀廣?
聽聽
SQL> select sessiontimezone,current_timestamp from dual;
聽聽
SESSIONTIMEZONE CURRENT_TIMESTAMP
--------------- ------------------------------------
-11:00聽 聽聽 聽聽 聽 12-11鏈?03 04.58.00.243000 涓嬪崍 -11:
聽 聽聽 聽聽 聽聽 聽聽 聽聽聽00
聽聽
SQL>聽聽
聽聽
4銆乨btimezone()榪斿洖鏃跺尯
varchar_value:=dbtimezone
SQL> select dbtimezone from dual;
聽聽
DBTIME
------
-07:00
聽聽
SQL>聽聽
聽聽
5銆乪xtract()鎵懼嚭鏃ユ湡鎴栭棿闅斿肩殑瀛楁鍊?
date_value:=extract(date_field from [datetime_value|interval_value])
SQL> select extract(month from sysdate) "This Month" from dual;
聽聽
This Month
----------
聽 聽聽 聽聽 聽11
聽聽
SQL> select extract(year from add_months(sysdate,36)) "3 Years Out" from dual;
聽聽
3 Years Out
-----------
聽 聽聽 聽聽聽2006
聽聽
SQL>聽聽
聽聽
6銆乴ast_day()榪斿洖鍖呭惈浜嗘棩鏈熷弬鏁扮殑鏈堜喚鐨勬渶鍚庝竴澶╃殑鏃ユ湡
date_value:=last_day(date_value)
SQL> select last_day(date'2000-02-01') "Leap Yr?" from dual;
聽聽
Leap Yr?
----------
29-2鏈?-00
聽聽
SQL> select last_day(sysdate) "Last day of this month" from dual;
聽聽
Last day o
----------
30-11鏈?03
聽聽
SQL>聽聽
聽聽
7銆乴ocaltimestamp()榪斿洖浼氳瘽涓殑鏃ユ湡鍜屾椂闂?
timestamp_value:=localtimestamp
SQL> column localtimestamp format a28
SQL> select localtimestamp from dual;
聽聽
LOCALTIMESTAMP
----------------------------
13-11鏈?03 12.09.15.433000
涓嬪崍
聽聽
SQL> select localtimestamp,current_timestamp from dual;
聽聽
LOCALTIMESTAMP聽 聽聽 聽聽 聽聽 聽聽 聽CURRENT_TIMESTAMP
---------------------------- ------------------------------------
13-11鏈?03 12.09.31.006000聽 聽13-11鏈?03 12.09.31.006000 涓嬪崍 +08:
涓嬪崍聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽 00
聽聽
SQL> alter session set time_zone='-11:00';
聽聽
浼氳瘽宸叉洿鏀廣?
聽聽
SQL> select localtimestamp,to_char(sysdate,'DD-MM-YYYY HH:MI:SS AM') "SYSDATE" from dual;
聽聽
LOCALTIMESTAMP聽 聽聽 聽聽 聽聽 聽聽 聽SYSDATE
---------------------------- ------------------------
12-11鏈?03 05.11.31.259000聽 聽13-11-2003 12:11:31 涓嬪崍
涓嬪崍
聽聽
SQL>聽聽
聽聽
8銆乵onths_between()鍒ゆ柇涓や釜鏃ユ湡涔嬮棿鐨勬湀浠芥暟閲?
number_value:=months_between(date_value,date_value)
SQL> select months_between(sysdate,date'1971-05-18') from dual;
聽聽
MONTHS_BETWEEN(SYSDATE,DATE'1971-05-18')
----------------------------------------
聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽 389.855143
聽聽
SQL> select months_between(sysdate,date'2001-01-01') from dual;
聽聽
MONTHS_BETWEEN(SYSDATE,DATE'2001-01-01')
----------------------------------------
聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽 34.4035409
聽聽
SQL>聽聽
聽聽
9銆乶ext_day()緇欏畾涓涓棩鏈熷鹼紝榪斿洖鐢辯浜屼釜鍙傛暟鎸囧嚭鐨勬棩瀛愮涓嬈″嚭鐜板湪鐨勬棩鏈熷鹼紙搴旇繑鍥炵浉搴旀棩瀛愮殑鍚嶇О瀛楃涓詫級

10銆乨ate = to_date('2005-3-16 16:55:36','YYYY-MM-DD HH24:MI:SS');




]]>
主站蜘蛛池模板: 日本一区二区在线免费观看 | 四虎永久在线精品视频免费观看| 亚洲国产精品线在线观看| 十八禁视频在线观看免费无码无遮挡骂过 | 97在线视频免费公开视频| 久久久久久久亚洲精品| 人禽伦免费交视频播放| 久久久久亚洲AV无码专区桃色| 全黄A免费一级毛片| 国产亚洲精品自在线观看| 在线涩涩免费观看国产精品 | 美女视频黄频a免费观看| 亚洲精品专区在线观看| kk4kk免费视频毛片| 亚洲无线码在线一区观看| 鲁丝片一区二区三区免费| 久久久久亚洲Av无码专| 国产四虎免费精品视频| 亚洲一区二区三区写真| www.亚洲色图| 中文字幕乱码一区二区免费| 亚洲春色在线观看| 国产色婷婷精品免费视频| 特黄特色的大片观看免费视频| 亚洲综合另类小说色区| 日本在线看片免费人成视频1000 | 麻豆一区二区免费播放网站 | 亚洲va在线va天堂va不卡下载| 日本视频一区在线观看免费| 亚洲精品人成网在线播放影院| 四虎影视精品永久免费| 国产又黄又爽胸又大免费视频| 亚洲网站在线播放| 又黄又爽无遮挡免费视频| 免费国产午夜高清在线视频| 亚洲一区二区三区91| 亚洲乱码中文字幕手机在线| 久久久久久久99精品免费| 亚洲天然素人无码专区| 亚洲无人区午夜福利码高清完整版| 亚洲精品在线免费观看|