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

ÊÇoracleµÄbugô£¿É¢·ÖÁË£¡ - Oracle / »ù´¡ºÍ¹ÜÀí

±¾À´ÒªÐ´¸öupdateÓï¾ä
update table_a A
  set A.flag=1
  where A.id in (select B.id from table_b B)
½á¹ûÎóд³É
update table_a A
  set A.flag=1
  where A.id in (select A.id from table_b B) 


Ϊɶ´íÎóµÄд·¨£¬oralce±àÒë²»±¨´íÄØ£¿
¶øÇÒ Ö»ÒªB±íÖÐÓÐÊý¾Ý£¬A¾ÍÈ«±í¸üÐÂÁË
  B±íûÊý¾Ý£¬A±í¾ÍupdateÁË0Ìõ¼Ç¼£¬
Ë­ÄܽâÊÍÏ£¿ÊÇoracleµÄbugô£¿

(select A.id from table_b B)Õâ¾äÊÇ¿ÉÒÔÖ´ÐеÄ
Äã˵µÄ´íÎóµÄд·¨Ö»ÊǺÍÄãµÄ±¾Òâ²»Ò»Ö£¬Óï·¨ÉÏû´í

UP~

select A.id from table_b B

µ¥¶ÀµÄÓï¾äÔËÐÐ:
Ìáʾ:ora-00904µÄ´íÎó!

ÒýÓÃ
UP~


select * from test a
where name in(
select a.name from test b)

Õâ¸ö¾Í²»Ìáʾ,Ö±½ÓÏÔʾ
select * from test a


±íAºÍB×ö½»²æ£¬Ö»ÒªBÖÐÓÐÊý¾Ý£¬¾Í¸üÐÂAµÄËùÓÐÊý¾Ý£»(Ò²¿ÉÒÔ°ÑB»»³ÉdualÒ»Ñù)
BÖÐûÓÐÊý¾Ý£¬¾Í¸üÐÂ0ÐУ»


µ¥¶ÀÓï¾ä¿Ï¶¨²»ÐУ¬

ËûÉÏÃæÓï¾äÀïÃæÒѾ­¶¨ÒåÁ˱íAÁË£¬²»ÖªµÀÕâô˵ÊÇ·ñ׼ȷ

ÒýÓÃ
select A.id from table_b B

µ¥¶ÀµÄÓï¾äÔËÐÐ:
Ìáʾ:ora-00904µÄ´íÎó!


ÎÒ˵µÄÊǵڶþ¾ä»°¡£¡£¡£²»Êǵ¥¶ÀµÄ×Ó²éѯ

ÒýÓÃ
±¾À´ÒªÐ´¸öupdateÓï¾ä
update table_a A
      set A.flag=1
      where A.id in (select B.id from table_b B)
½á¹ûÎóд³É<


Ïà¹ØÎÊ´ð£º

delphi Ôõô½«oracleµÄlong raw ×Ö¶ÎÖµ µ¼Èëblob×Ö¶Î

delphi Ôõô½«oracleµÄlong raw ×Ö¶ÎÖµ µ¼Èëblob×Ö¶Î

http://blog.csdn.net/zxf_feng/archive/2008/12/21/3571961.aspx
¿´¿´Õâ¸ö

ÒýÓÃ
            vStream := TMemorySt ......

Oracle Æô¶¯µÄÎÊÌâ

oracle not available
shared memory realm does not exist
ÇëÎʸßÊÖÕâ¸öÎÊÌâÈçºÎ½â¾ö£¿
http://www.inthirties.com/thread-109-2-1.html

Ö¸¶¨ÏÂORACLE_SID,ORACLE_HOME¿´¿´£¬²»ÐоÍÓÃ1Â¥µÃ·½·¨ÁË..

cm ......

¼±Ñ°Oracle ERPʵʩ¹ËÎÊ

3-5ÈË£¬¹¤×÷µØµãÉϺ£ÆÖ¶«Èí¼þÔ°£¬2-3Äê¾­Ñ飬ӢÎÄÁ÷Àû£¬ÓÐÒâÕßÇëÁªÏµ38954510-1355£¬15821699737£¬y.ming@live.cn
×Ô¼º¶¥¡£¡£¡£

ûÓÐORACLE ERPµÄ¾­Ñé,ÓÐÓÃÓѺÍTIPTOP¾­Ñé,Ó¢Óï˵²»ºÃ,¿´»¹ÊÇ¿ÉÒÔ!
²»ÖªµÀÓÐûÓÐ ......

Oracle¿Í»§¶Ë°²×°ºóODBCÎÞ·¨Ê¹ÓÃ

°²×°11gµÄ06,´ò²¹¶¡Éýµ½07£¬´ÓODBCÀïÃæ¿´£¬ÓÐ
Oracle in OraOdac11g_home1 11.01.00.07
´Ó×¢²á±í¿´HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ÏÂÃæµÄDriverºÍSetup¶¼ÊÇÎҵݲװ·¾¶
"D:\\app\\Ad ......

sqlplusÁ¬½ÓoracleÊý¾Ý¿âÔ­Àí£¿

sqlplusÁ¬½ÓOracleÊý¾Ý¿âµÄÕû¸öÁ÷³Ì£¬
ÀýÈç sqlplus /nolog
    conn system/oracle£¨ÃÜÂ룩

Õâ¸öÁ¬½ÓOracleµÄÕû¸ö»úÖÆÊÇʲô£¨×¢ÖØÓÚÁ¬½ÓµÄÔ­ÀíÉÏ£©

Èç¹ûÓÐË­¶®»òÓÐÏà¹ØÄÚÈݸøÓèÌáÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ