Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

oracle ²ã´Î»¯²éѯ

²ã´Î»¯²éѯ£º
select   [level],colomn,...from table
       [where where_clause]
       [   [start with start_condition]          [connect by prior prior_condition]   ];
,ʹÓÃcount(distinct level) ¿ÉÒÔ»ñÈ¡²ã´ÎÊý
´ÓÏÂÏòÉϱéÀú£¬½»»»connect by prior ¸¸½ÚµãºÍ×Ó½áµãµÄ˳Ðò¼´¿É
Ҫȥµôij¸ö½Úµã¼°Æä×Ô¼ºµãÔÚ²éѯ½á¹ûÖУ¬¿ÉÒÔÔÚconnect by prior ×Ó¾äÖÐʹÓÃand condition ¼´¿É¡£
ֻȥµôij½Úµã£¬¶ø±£Áô×Ó½áµã£¬Ö»ÐèÔÚwhere ÖÐÌí¼ÓÌõ¼þ¼´¿É
²ã´Î»¯²éѯÖÐÒ²¿ÉÒÔʹÓÃ×Ó²éѯ
ÀûÓòéѯÐ޸ģ¬Óï¾ä
update table T set sid = (select pid from T2 where T.sno = T2.sno)
     where exists (select 1 from T2 where T.sno = T2.sno) 


Ïà¹ØÎĵµ£º

Oracle ²Ù×÷º¯Êý

º¯Êý£º
 1.ʹÓÃCreate Function Óï¾ä´´½¨
 2.Óï
·¨£º
     Create or replace Function  º¯ÊýÃû[²ÎÊýÁбí]
     Return  Êý¾ÝÀàÐÍ
IS|AS
            ¾Ö²¿±äÁ¿
     Be ......

Oracleѧϰ±Ê¼Ç

ȨÏÞ¹ÜÀí
Oracle 9i
3¸öĬÈÏÓû§
sys(³¬¼¶¹ÜÀíÔ±)       ĬÈÏÃÜÂ룺change_on_install
system£¨ÆÕͨ¹ÜÀíÔ±£©
ĬÈÏÃÜÂ룺manager
scott£¨ÆÕͨÓû§£©       ĬÈÏÃÜÂ룺tiger
Oracle 10g
sys£¨ÃÜÂëÔÚ°²×°Ê±ÉèÖã©
system£¨ÃÜÂëÔÚ°²×°Ê±ÉèÖã©
scott(ĬÈÏËø¶¨£¬ÏëÓõýâËø)
Æô¶¯Windo ......

½â¶ÁOracleÖ®Ò»£º°²×°Oracle

°²×°¸ÅÊö
±¾Æª½éÉÜÈçºÎ°²×°OracleÈí¼þ£¬Òª°²×°OracleÈí¼þÍƼöʹÓÃOracleͨÓð²×°¡£OracleͨÓð²×°³ÌÐòÊÇÒ»¸öͼÐÎÓû§½çÃ棨GUI£©¹¤¾ß£¬Ê¹Äú¿ÉÒԲ鿴OracleÈí¼þÒÑÔÚ¼ÆËã»úÉÏ°²×°»ò°²×°ÐµÄOracleÈí¼þ£¬²¢Ð¶ÔØOracleÈí¼þ£¬ÒÔϽ«Ð­ÖúÄúÍê³É°²×°¹ý³Ì¡£
¼ì²éÏȾöÌõ¼þ
°²×°³ÌÐò֮ǰ£¬Oracle¹«Ë¾Ö´ÐÐÒ»¸öÏȾöÌõ¼þ¼ì²éµÄ×Ô¶¯±àº ......

Oracle Instant Client°²×°


Èí¼þÏÂÔØ
µ½http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.htmlÏÂÔØÈçÏÂÈý¸ö°ü£º
instantclient-basic-win32-11.1.0.7.0.zip
instantclient-jdbc-win32-11.1.0.7.0.zip
instantclient-sqlplus-win32-11.1.0.7.0.zip
½«ÕâÈý¸ö°ü·Ö±ð½âѹ£¬È»ºóÄÚÈݷŵ½D:\instantclient_11_1ÏÂ
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ