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

Âé·³°ïÎÒдһÌõSQLÓï¾ä - Oracle / »ù´¡ºÍ¹ÜÀí

ÔÚemis.answerlib_1±íÖУ¬ÓÉÓÚʧÎ󣬽«ÁÐanswer ÀïÃæµÄºÜ¶àÊý¾Ý±ä³ÉÕâÑù
Question_ID Answer 
1061 abcdabcd
1062 abdabd  

¾ÍÊÇÊý¾ÝÖظ´ÁË ÎÒÏë°ÑËü±ä³Éabcd¡¢abdÈ¥³ýÿһÁÐÀïÃæÖظ´µÄÊý¾Ý

update emis.answerlib_1 a set a.answer=( select substr(answer,1,length(answer)/2) from emis.answerlib_1 where Question_ID=a.Question_ID);



ÌáʾÎÞ·¨¸üÐÂ(emis.answerlib_1.answer)ΪNULL

¶øÇÒ²¢²»ÊÇÿһÌõÊý¾Ý¶¼´íÁË...Ö»ÓÐÒ»²¿·ÖÊý¾ÝÊÇ

ÁÐ1£ºQuestion_ID¡¡ ÁÐ2£ºAnswer  
¡¡¡¡¡¡¡¡1061 ¡¡¡¡¡¡¡¡¡¡¡¡abcdabcd
¡¡¡¡¡¡¡¡1062 ¡¡¡¡¡¡¡¡¡¡¡¡abdabd

²»»á°É 
SQL> create table my(id number,name varchar2(10));

Table created

SQL> insert into my values(1,'abcdabcd');

1 row inserted

SQL> insert into my values(2,'abcabc');

1 row inserted

SQL> commit;

Commit complete

SQL> update my a set a.name=(select substr(name,1,length(name)/2) from my where id=a.id); 

2 rows updated

SQL> select * from my;

  ID NAME
---------- ----------
  1 abcd
  2 abc

SQL>

Ŷ ÎÒÃ÷°×ÁË £¬ÕâÑùµÄ»° ¿ÉÄÜÄãҪдһ¸öº¯ÊýÈ¥²ð·ÖÄãµÄAnswer ×ֶΣ¬ÅжÏËûÊÇ·ñÖظ´£¬È»ºóÔÙ½ØÈ¡

ÕæµÄ²»ÐÐ »¹ÊÇÄǸö´í Äã²åÈëÒ»ÌõûÓÐÖظ´µÄÊý¾ÝÊÔÊÔ°¡£¡

ÊÇµÄ ÎÒÒªµÄ¾ÍÊÇÄǸö½á¹û...

ÏÖÔڱȽÏæ ÔÚ´¦ÀíÒ»¸öÒì³£


Ïà¹ØÎÊ´ð£º

csvÎļþת»»³Ésqlµ¼Èëµ½Êý¾Ý¿â£¬Ã»ÓÐÊý¾ÝΪºÎ£¿

Ö´ÐеÄ˳Ðò£º
1£©Îļþä¯ÀÀ¿ò£¨Ñ¡ÔñÎļþʹÓã©
Ñ¡ÔñºÃÎļþºó
µã»÷Ò»¸öµ¼Èë°´Å¥µÄʱºò £¬°ÑÉÏÃæÉÏ´«¿òÀïµÄcsvÎļþÒÔÒ»¸öIDΪÎļþÃû£¬ÉÏ´«µ½**/**Îļþ¼ÐÏÂ
2£©¶ÁÈ¡Õâ¸öÎļþ¼ÐϵÄcsvµÄÎļþ£¬×ª»»³Ésql
3 ......

sqlССµÄÒÉÎÊ - .NET¼¼Êõ / C#

¿ÉÄÜÒòΪ¹¤×÷µÄÔ­Òò ½Ó´¥Êý¾Ý¿âÕâ¿é±È½ÏÉÙ£¬Ö®Ç°¶¼ÊÇ×ö³ÌÐòÕâ¿é£¬Êý¾Ý¿âÕâ¿é¶¼ÓÐרÃŵÄÈËÀ´×ö ·Ö¹¤¶¼ºÜÃ÷ϸ ËùÒÔ¶ÔÊý¾Ý¿âÕâÒ»¿éÍêÈ«²»Á˽⡣ǰ¶Îʱ¼ä È¥ÃæÊÔÁ˼¸¼Ò¹«Ë¾ ¼¸ºõ¶¼ÊÇÔÚÊý¾Ý¿âÕâ¿é¹ÒµôµÄ Á¬¸ö¼òµ¥µÄSQ ......

oracle 9i ×î½ü·¢Ïֵǽ±¨´í - Oracle / »ù´¡ºÍ¹ÜÀí

ÓÃPL/SQL µÇ½ʱµ¯³ö±¨´í´°¿Ú£¬´íÎóÈçÏ£¡
  ORA-01034:ORACLE not available
  ORA-27101:shared memory realm does not exist
ÇëÎÊ£¬ÓÐûÓÐÈËÓöµ½ÕâÖÖÇé¿ö£¬Ôõô½â¾ö£¿Ð»Ð»£¡

1. Oracle sid ÕýÈ ......

ÇóÒ»sqlÓï¾ä - MS-SQL Server / ÒÉÄÑÎÊÌâ

ÏÖÔÚÓÐÁ½ÕÅ±í£ºÎÄÕÂÖ÷±íA(articleId,articleTitle)£¬ÎÄÕÂÆÀÂÛ±íB(commentId,articleId,commentTitle)
ÏÖÔÚÎÒÏëʵÏÖÕâÑùµÄ¹¦ÄÜ£ºÁгöÎÄÕÂÁÐ±í£¬ÆäÖÐÿƪÎÄÕ±êÌâÏÂÃæÁгö´ËÎÄÕµÄÇ°2¸öÎÄÕÂÆÀÂÛ£¬ÇëÎÊsqlÓï¾äÔõôд°¡ ......

SQL·ÖÒ³ÓëOracle·ÖÒ³µÄÒÉÎÊ£¿ - Java / Web ¿ª·¢

ÕâÀïÏëÁ˽âÏ£¬¹ØÓÚSQL ServerÖзÖÒ³ºÍOracleÖзÖÒ³£»
ƽ³£Ð´Ó¦ÓóÌÐòµÄʱºò£¬±ÈÈçÓõÄÓïÑÔÊÇJava£¬ÓиöÁбíÒ³Ã棬ÐèÒª¶ÔÊý¾Ý·ÖÒ³ÏÔʾ£»
ÕâÀïÒª·ÖÒ³ÄѵÀ²»ÐèÒª½èÖúJava£¬¶øÖ±½ÓsqlÄÜÖªµÀ·ÖÒ³Âð£¬ÆðÂëÒ²Òª´«¸öÒ³Âë½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ