锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品一二三区视频,亚洲成人久久影院,99re6这里只有精品视频在线观看http://www.aygfsteel.com/xlth2006/category/41976.html瀛︿範鎵嶆槸鍞竴鐨勫嚭璺?/description>zh-cnMon, 09 Nov 2009 02:39:51 GMTMon, 09 Nov 2009 02:39:51 GMT60Oracle 搴忓垪鐨勫垱寤哄拰浣跨敤http://www.aygfsteel.com/xlth2006/archive/2009/11/08/301596.html閾佺尨閾佺尨Sun, 08 Nov 2009 03:40:00 GMThttp://www.aygfsteel.com/xlth2006/archive/2009/11/08/301596.htmlhttp://www.aygfsteel.com/xlth2006/comments/301596.htmlhttp://www.aygfsteel.com/xlth2006/archive/2009/11/08/301596.html#Feedback0http://www.aygfsteel.com/xlth2006/comments/commentRss/301596.htmlhttp://www.aygfsteel.com/xlth2006/services/trackbacks/301596.html鍒涘緩搴忓垪
create sequence seq_a minvalue 1000 maxvalue 99999999 start with 1000 increment by 1 nocache;


鏌ヨ搴忓垪
select seq_a.nextval from dual;


涓烘瘡寮犺〃鐢熸垚瀵瑰簲鐨勫簭鍒?

--鍒涘緩瀛樺偍榪囩▼
create or replace procedure p_createseq(tablename in varchar2)
is
strsql varchar2(500);
begin
strsql:='create sequence seq_'||tablename||' minvalue 1000 maxvalue 99999999 start with 1000 increment by 1 nocache';
execute immediate strsql;
end p_createseq;
/

--鍒涘緩搴忓垪
exec p_createseq('t_power');
exec p_createseq('t_roler');
exec p_createseq('t_roler_power');
exec p_createseq('t_department');
exec p_createseq('t_quarters');
exec p_createseq('t_quarters_roler');
exec p_createseq('t_emp');
exec p_createseq('t_require_plan');
exec p_createseq('t_require_minutia');
exec p_createseq('t_require_audit');
exec p_createseq('t_engage');
exec p_createseq('t_home');
exec p_createseq('t_education');
exec p_createseq('t_works');
exec p_createseq('t_skill');
exec p_createseq('t_account');
exec p_createseq('t_licence');
exec p_createseq('t_title');
exec p_createseq('t_remove');
exec p_createseq('t_train');
exec p_createseq('t_pact');
exec p_createseq('t_assess');
exec p_createseq('t_attendance');
exec p_createseq('t_reward_punish');
exec p_createseq('t_dimission');
exec p_createseq('t_emp_roler');
exec p_createseq('t_code');


閾佺尨 2009-11-08 11:40 鍙戣〃璇勮
]]>
涓鏉″緢緇忓吀鐨凷QL璇彞http://www.aygfsteel.com/xlth2006/archive/2009/10/15/298315.html閾佺尨閾佺尨Thu, 15 Oct 2009 01:36:00 GMThttp://www.aygfsteel.com/xlth2006/archive/2009/10/15/298315.htmlhttp://www.aygfsteel.com/xlth2006/comments/298315.htmlhttp://www.aygfsteel.com/xlth2006/archive/2009/10/15/298315.html#Feedback0http://www.aygfsteel.com/xlth2006/comments/commentRss/298315.htmlhttp://www.aygfsteel.com/xlth2006/services/trackbacks/298315.html from order_main_info a,INT_AD_INFO  c
WHERE   a.order_type='32' and
a.state='0' and c.order_id=a.order_id and
a.order_id=(select order_id from(select rownum rn,order_id
from ORDER_DEAL_INFO where order_id=(select order_id from order_main_info where order_type='32' and  state='0'))
where rn=(select count(*) from ORDER_DEAL_INFO where order_id=(select order_id from order_main_info where order_type='32' and  state='0')))

閾佺尨 2009-10-15 09:36 鍙戣〃璇勮
]]>
to_date() 涓?to_char() 鏃ユ湡鍜屽瓧絎︿覆杞崲http://www.aygfsteel.com/xlth2006/archive/2009/10/06/297312.html閾佺尨閾佺尨Tue, 06 Oct 2009 07:37:00 GMThttp://www.aygfsteel.com/xlth2006/archive/2009/10/06/297312.htmlhttp://www.aygfsteel.com/xlth2006/comments/297312.htmlhttp://www.aygfsteel.com/xlth2006/archive/2009/10/06/297312.html#Feedback0http://www.aygfsteel.com/xlth2006/comments/commentRss/297312.htmlhttp://www.aygfsteel.com/xlth2006/services/trackbacks/297312.htmlto_date("瑕佽漿鎹㈢殑瀛楃涓?,"杞崲鐨勬牸寮?)   涓や釜鍙傛暟鐨勬牸寮忓繀欏誨尮閰嶏紝鍚﹀垯浼氭姤閿欍?/p>

鍗蟲寜鐓х浜屼釜鍙傛暟鐨勬牸寮忚В閲婄涓涓弬鏁般?/p>

to_char(鏃ユ湡,"杞崲鏍煎紡" ) 鍗蟲妸緇欏畾鐨勬棩鏈熸寜鐓?#8220;杞崲鏍煎紡”杞崲銆?/p>

 

杞崲鐨勬牸寮忥細

琛ㄧずyear鐨勶細y  琛ㄧず騫寸殑鏈鍚庝竴浣?yy 琛ㄧず騫寸殑鏈鍚?浣?yyy 琛ㄧず騫寸殑鏈鍚?浣?yyyy 鐢?浣嶆暟琛ㄧず騫?/p>

琛ㄧずmonth鐨勶細mm 鐢?浣嶆暟瀛楄〃紺烘湀錛沵on 鐢ㄧ畝鍐欏艦寮?姣斿11鏈堟垨鑰卬ov 錛沵onth 鐢ㄥ叏縐?姣斿11鏈堟垨鑰卬ovember

琛ㄧずday鐨勶細dd 琛ㄧず褰撴湀絎嚑澶╋紱ddd琛ㄧず褰撳勾絎嚑澶╋紱dy 褰撳懆絎嚑澶?綆鍐?nbsp; 姣斿鏄熸湡浜旀垨鑰協ri錛沝ay褰撳懆絎嚑澶?鍏ㄥ啓

姣斿鏄熸湡浜旀垨鑰協riday銆?/p>

琛ㄧずhour鐨勶細hh 2浣嶆暟琛ㄧず灝忔椂 12榪涘埗錛?hh24 2浣嶆暟琛ㄧず灝忔椂 24灝忔椂

琛ㄧずminute鐨勶細mi 2浣嶆暟琛ㄧず鍒嗛挓

琛ㄧずsecond鐨勶細ss 2浣嶆暟琛ㄧず縐?60榪涘埗

琛ㄧず瀛e害鐨勶細q 涓浣嶆暟 琛ㄧず瀛e害 錛?-4錛?/p>

鍙﹀榪樻湁ww 鐢ㄦ潵琛ㄧず褰撳勾絎嚑鍛?w鐢ㄦ潵琛ㄧず褰撴湀絎嚑鍛ㄣ?/p>

24灝忔椂鍒朵笅鐨勬椂闂磋寖鍥達細00錛?0錛?0-23錛?9錛?9

12灝忔椂鍒朵笅鐨勬椂闂磋寖鍥達細1錛?0錛?0-12錛?9錛?9

姣斿錛?/p>

select to_char(sysdate,'yy-mm-dd hh24:mi:ss') from dual   //鏄劇ず錛?8-11-07 13:22:42

select to_date('2005-12-25,13:25:59','yyyy-mm-dd,hh24:mi:ss') from dual //鏄劇ず錛?005-12-25 13:25:59

鑰屽鏋滄妸涓婂紡鍐欎綔錛歴elect to_date('2005-12-25,13:25:59','yyyy-mm-dd,hh:mi:ss') from dual錛屽垯浼氭姤閿欙紝鍥犱負灝忔椂hh鏄?2榪涘埗錛?3涓洪潪娉曡緭鍏ワ紝涓嶈兘鍖歸厤銆?/p>

琛ュ厖錛?/p>

褰撳墠鏃墮棿鍑忓幓7鍒嗛挓鐨勬椂闂?
select sysdate,sysdate - interval '7' MINUTE from dual
褰撳墠鏃墮棿鍑忓幓7灝忔椂鐨勬椂闂?
select sysdate - interval '7' hour from dual
褰撳墠鏃墮棿鍑忓幓7澶╃殑鏃墮棿
select sysdate - interval ’7’ day from dual
褰撳墠鏃墮棿鍑忓幓7鏈堢殑鏃墮棿
select sysdate,sysdate - interval '7' month from dual
褰撳墠鏃墮棿鍑忓幓7騫寸殑鏃墮棿
select sysdate,sysdate - interval '7' year from dual
鏃墮棿闂撮殧涔樹互涓涓暟瀛?
select sysdate,sysdate - 8*interval '7' hour from dual

 

Dual浼垪

鍚箟瑙i噴錛?/p>

Dual 鏄?Oracle涓殑涓涓疄闄呭瓨鍦ㄧ殑琛紝浠諱綍鐢ㄦ埛鍧囧彲璇誨彇錛?strong>甯哥敤鍦ㄦ病鏈夌洰鏍囪〃鐨剆elect璇彞鍧椾腑銆?/p>

姣斿錛屾垜瑕佽幏寰楃郴緇熸椂闂達紝鍒欑敤“select sysdate from dual” 鍒欒繑鍥炵郴緇熷綋鍓嶇殑鏃墮棿錛?008-11-07 9:32:49錛屼笉鍚岀郴緇熷彲鑳借繑鍥炴棩鏈熺殑鏍煎紡涓嶄竴鏍楓?select user from dual"鍒欒繑鍥炲綋鍓嶈繛鎺ョ殑鐢ㄦ埛銆傚鏋滄槸"select 1+2 from dual"錛屽垯榪斿洖緇撴灉錛?



閾佺尨 2009-10-06 15:37 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 蛟河市| 章丘市| 绩溪县| 营山县| 丘北县| 临安市| 江达县| 蒲城县| 精河县| 张北县| 阿荣旗| 吉木萨尔县| 策勒县| 广元市| 淅川县| 广德县| 蛟河市| 双柏县| 日照市| 上虞市| 敖汉旗| 靖西县| 临西县| 甘洛县| 霸州市| 新津县| 肃宁县| 永城市| 临夏县| 高青县| 施甸县| 伊金霍洛旗| 个旧市| 平山县| 浦城县| 铅山县| 无棣县| 宁海县| 广水市| 洪湖市| 龙南县|