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

ORACLEÖн«Ò»¸ö±í×ֶθ³Öµµ½ÁíÒ»¸ö±íÖÐ

ͬһ¸ö¿âÖÐ2Õűí simple,simple2
¶¼¶ÔÓ¦ÓÐÏàͬµÄÖ÷¼üID£¬ÇÒÖµÏàͬ
Á½¸ö±í¶¼ÓÐ×Ö¶Înameµ«Öµ²»Í¬
ÏÖÔÚÐèÒª½«simple2ÖÐ×Ö¶Îname¶ÔÓ¦µ½simpleÖÐ
ÒªÇóÏàͬµÄID¶ÔÓ¦µ½Ïà¶ÔÓ¦µÄname

±íÀïÃæÓÐ1000¶àÌõÊý¾Ý£¬²»ÄÜÒ»ÌõÌõµÄupdateŶ
update simple1 set name = (select name from simple2 where simple2.id = simple1.id);

update simple1 a set a.name =(select b.name from simple2 b where a.id=b.id)


update simple1 set name = (select name from simple2 where simple2.id = simple1.id);

1¡¢2¥дµÄÌõ¼þÓï¾ä£¨Èçselect b.name from simple2 b where a.id=b.id£©
¾ù±¨¡¯a¡®.¡¯id¡®±êʶ·ûÎÞЧ»òÕß 'simple'.'id'±êʶ·ûÎÞЧ


ÒýÓÃ
1¡¢2¥дµÄÌõ¼þÓï¾ä£¨Èçselect b.name from simple2 b where a.id=b.id£©
¾ù±¨¡¯a¡®.¡¯id¡®±êʶ·ûÎÞЧ»òÕß 'simple'.'id'±êʶ·ûÎÞЧ


SQL code:

create table simple1 (id number, name varchar2(20));
create table simple2 (id number, name varchar2(20));

insert into simple1 values (1, 'Tom');
insert into simple1 values (2, 'Jack');
insert into simple1 values (3, 'Andy');

insert into simple2 values (1, 'Amy');
insert into simple2 values (2, 'Mary');
insert into simple2 values (3, 'Cindy');

update simple1 set name = (select name from simple2 where simple2.id = simple1.id);





Ïà¹ØÎÊ´ð£º

oracle 10g°²×°µ½85%ʱ±¨´í

¸÷λoracle¸ßÊÖ£¬Çë½ÌÒ»ÏÂΪʲôoracle 10gÔÚ°²×°µ½°Ù·ÖÖ®°ËÊ®ÎåµÄʱºò¾Í±¨´í²»ÄܼÌÐø°²×°£¿

ÄÚ´æ¶à´ó£¿¡¡ÖØÐÂϸöÊý¾Ý¿â°²×°ÊÔÊÔ..

ÒýÓÃ
¸÷λoracle¸ßÊÖ£¬Çë½ÌÒ»ÏÂΪʲôoracle 10gÔÚ°²×°µ½°Ù·ÖÖ®°ËÊ®ÎåµÄʱ ......

oracle spatial¿Õ¼äº¯Êý³ö´í - Oracle / ¸ß¼¶¼¼Êõ

ÔÚÖ´ÐаüµÄʱºòÒýÓÃoracle spatial¿Õ¼äº¯Êý³ö´í£¬³ö´íÇé¿öÈçÏÂ
Errors in file
/user/oracle/app/oracle/admin/grid/udump/grid1_ora_143768.trc: ORA-29902:
error in executing ODCIIndexStart() routine ORA-0 ......

oracle °²×° 01092 ´íÎó - Oracle / »ù´¡ºÍ¹ÜÀí

oracle 11g °²×° 01092 ´íÎó,
ÈÕÖ¾ÐÅÏ¢£º
[oracle@linux trace]$ vi alert_orcl.log 
MMON started with pid=14, OS id=9089
RESETLOGS after incomplete recovery UNTIL CHANGE 522752
Errors in file / ......

eclipseÖÐÁ¬½ÓoracleµÄÎÊÌâ - Oracle / »ù´¡ºÍ¹ÜÀí

eclipse 3.3Æô¶¯web¹¤³Ì£¬ÒªÁ¬½Óoracle9iÊý¾Ý¿â±¨
ÑÏÖØ: Cannot create PoolableConnectionFactory (Listener refused the connection with the following error:
ORA-12518, TNS:listener could not hand off cli ......

sqlÓÅ»¯ - Oracle / »ù´¡ºÍ¹ÜÀí

select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001' 
ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ