oracleÊý¾Ý²éѯÎÊÌâ
ÓÐ500ÍòÌõͨ»°¼Ç¼
±àºÅ ºÅÂë ±»½ÐºÅÂë ¿ªÊ¼Ê±¼ä ½áÊøʱ¼ä ͨ»°Ê±³¤
1 10010 20020 12:00 12:01 1
2 10010 20045 12:05 12:06 1
3 10012 30045 12:45 12:55 10
Êý¾Ý²»ÊǺÜÕýÈ·
²éѯҪÇó: ²éѯͬһµç»°ºÅÂëÁ½´Îͨ»°¼ä¸ô´óÓÚ10ÃëµÄËùÓбàºÅ (Êý¾ÝûÓÐÃë×Ô¼ºÌí¼Ó)
·ÖÎö:10010¿ÉÄÜÓÐÎå´Îͨ»°,¼ÓÈëµÚËĴνáÊøÓëµÚÎå´Î¿ªÊ¼Ê±¼ä¼ä¸ô´óÓÚ10ÃëÄÇôÕâÌõÊý¾Ý¾Í·ûºÏ
µÚËĴνáÊø£¬µÚÎå´Î¿ªÊ¼ÔÚÄÄÀïÄØ£¿
Äã¸øµÄÊý¾ÝºÍ˵Ã÷¶¼Ã»½âÊÍÇå³þŶ£¬»¹ÊÇÎÒ¿´²»¶®¡£
Êý¾ÝûÓÐÃë×Ô¼ºÌí¼Ó
Ôõô¸öÌí¼Ó¹æÔò£¿
»òÕß
select * from table1 t
where not exists(
select 1 from table1
where ºÅÂë=t.ºÅÂë and ¿ªÊ¼Ê±¼ä-t.½áÊøʱ¼ä between 0 and 10/24/3600)
and exists(
select 1 from table1
where ºÅÂë=t.ºÅÂë and ±àºÅ>t.±àºÅ)
drop table tb_mumu;
alter session set nls_date_formate='yyyy-mm-dd hh24:mi:dd';
create table tb_mumu (
ID number primary key not null,
Ö÷½ÐºÅÂë varchar2(11) not null,
±»½ÐºÅÂë varchar2(11) not null,
ͨ»°¿ªÊ¼Ê±¼ä d
Ïà¹ØÎÊ´ð£º
°²×°ÁËOracle 10g£¬Ä¬ÈÏ°²×°ÁËorclÊý¾Ý¿â£¬Õâ¸öÊý¾Ý¿âÄܲ»ÄÜɾ³ý°¡£¬»¹ÓÐÎÒÈç¹ûн¨ÁËÆäËûÊý¾Ý¿â£¬Ôõô֪µÀÔÚwebÖеǽ²»Í¬Êý¾Ý¿âµÄµØÖ·°¡£¿
1
¿ÉÒÔɾ³ý
2
ÔÚWEBµØÖ·À¸ÖÐÊäÈëµØÖ·µÄʱºòÖ¸¶¨Ð´´½¨µÄÊý¾Ý¿âµÄIP ......
ÏÖÔÚÎÒ±¾µØûÓа²×°oracle, µ«plsqldevÐèÒªsqlplus.exeµÈ£¬ÇëÎÊoracle10gÔÚwindowsÐèÒª
ÄÄЩexeÎļþ£¬ÄÄλ´ó¸çÄÜ˳±ãÌṩһÏÂQQ£º190565390
×°oracleµÄʱºò¿ÉÒÔÑ¡ÔñÖ»×°¿Í»§¶ËµÄ
×îÆðÂëҪװoracle£¬ÄãÖ»Ðè×°¿ ......
Developer SuiteÁ¬½ÓÊý¾Ý¿âµÄÎÊÌ⣬ÀͼݸßÊÖÖ¸µã£¡
µçÄÔÀïÃæͬʱװÁËOraHome92ºÍDevSuiteHome2£¬Ç°ÕßµÄsql*plusÄÜ·ÃÎÊ£¬ºóÕßµÄÔò²»ÐС£ÊäÈëscott/tigerµÇ½ºóÕßʱ£¬ÎÒÊäÈëÁË"Ö÷»ú×Ö·û´®"ºÅÒԺ󣬱¨´í£º&n ......
ÇëÎÊÕâ¸ö»º³å³ØÊÇÔõô»ØÊ°¡£¿¿ÉÒÔÁ¬½Ó»º³å³ØÀûÓÃÆäÖеÄÊý¾Ý°É£¿ÔõôÓã¿
Õâ¸öÊÇoracle×Ô¶¯×öµÄ£¬Ò»°ãÓ¦ÓóÌÐòÊDzÙ×÷²»Á˵ġ£
²»ÄÜÖ±½ÓÁ¬½ÓÂð£¿
ÒýÓÃ
²»ÄÜÖ±½ÓÁ¬½ÓÂð£¿
²»ÄÜ
ÄÇ»º³å³ØÀïµÄÊý¾ÝÒ²²»Äܲéѯ ......
ÎÒÔÚ´´½¨Êý¾Ý¿âµÄʱºòÓõÄÃû×ÖΪoracle10£¬µ«ÊÇ´´½¨ºÃºó£¬ÔÚĬÈϵÄĿ¼ÏÂÏÔʾµÄÃû³ÆÈ´ÊÇoracle10g£¬ÕâÊÇΪʲô£¿
Äã¿´µÄ 10gÊÇ°²×°Ä¿Â¼°É
SQL> select name from v$database;
NAME
---------
ORCL
......