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

¹ØÓÚSQLSERVERÖиüÐÂTextÀàÐÍSQLÓï¾ä½âÎö

 »ù±¾·½·¨:
                   
UPDATETEXT { table_name.dest_column_name dest_text_ptr }//{ Òª¸üеıíÒÔ¼° text¡¢ntext »ò image ÁеÄÃû³Æ,Ö¸ÏòÒª¸üÐ嵀 text¡¢ntext »ò image Êý¾ÝµÄÎı¾Ö¸ÕëµÄÖµ£¨ÓÉ TEXTPTR º¯Êý·µ»Ø£©¡£dest_text_ptr ±ØÐëΪÊý¾ÝÀàÐÍ binary(16)¡£}
    { NULL | insert_offset }
     { NULL | delete_length }
     [ WITH LOG ]
     [ inserted_data
    | { table_name.src_column_name src_text_ptr } ]
вåÈëµÄÊý¾Ý¿ÉÒÔÊǵ¥¸ö inserted_data ³£Á¿¡¢±íÃû¡¢ÁÐÃû»òÎı¾Ö¸Õë¡£
Update ²Ù×÷ UPDATETEXT ²ÎÊý Ìæ»»ÏÖÓÐÊý¾ÝÖ¸¶¨Ò»¸ö·Ç¿Õ insert_offset Öµ¡¢·ÇÁã delete_length ÖµºÍÒª²åÈëµÄÐÂÊý¾Ý¡£É¾³ýÏÖÓÐÊý¾ÝÖ¸¶¨Ò»¸ö·Ç¿Õ insert_offset Öµ¡¢·ÇÁã delete_length ÖµºÍÒª²åÈëµÄÐÂÊý¾Ý¡£²»Ö¸¶¨Òª²åÈëµÄÐÂÊý¾Ý¡£²åÈëÐÂÊý¾ÝÖ¸¶¨ insert_offset Öµ¡¢Îª 0 µÄ delete_length ÖµºÍÒª²åÈëµÄÐÂÊý¾Ý¡£
Ϊ»ñµÃ×î¼ÑÐÔÄÜ£¬½¨ÒéÔÚ²åÈë»ò¸üРtext¡¢ntext ºÍ image Êý¾Ýʱ£¬Ê¹Óà 8,040 ×ֽڵı¶ÊýµÄ¿éÇø´óС¡£
 
insert_offset
ÒÔÁãΪ»ùµÄ¸üÐÂÆðʼλÖ᣶ÔÓÚ text »ò image ÁУ¬
insert_offset ÊÇÔÚ²åÈëÐÂÊý¾ÝÇ°Òª´ÓÏÖÓÐÁеÄÆðµãÌø¹ýµÄ×Ö½ÚÊý¡£¶ÔÓÚ ntext ÁУ¬
insert_offset ÊÇ×Ö·ûÊý£¨Ã¿¸ö ntext ×Ö·ûÕ¼Óà 2 ¸ö×Ö½Ú£©¡£´Ó´Ë»ùÊýΪÁãµÄÆðʼµã¿ªÊ¼µÄÏÖÓÐ
text¡¢ntext »ò image Êý¾ÝÏòÓÒÒÆ£¬ÎªÐÂÊý¾ÝÁô³ö¿Õ¼ä¡£ÖµÎª 0 ±íʾ½«ÐÂÊý¾Ý²åÈëÏÖÓÐÊý¾ÝµÄ¿ªÊ¼´¦¡£
ֵΪ NULL Ôò½«ÐÂÊý¾Ý×·¼Óµ½ÏÖÓÐÊý¾ÝÖµºó¡£
delete_length
´Ó insert_offset λÖÿªÊ¼µÄ¡¢Òª´ÓÏÖÓÐ text¡¢ntext »ò image ÁÐÖÐɾ³ýµÄÊý¾Ý³¤¶È¡£
delete_length Öµ¶ÔÓÚ text ºÍ image ÁÐÓÃ×Ö½ÚÖ¸¶¨£¬¶ÔÓÚ ntext ÁÐÓÃ×Ö·ûÖ¸¶¨¡£Ã¿¸ö ntext ×Ö·ûÕ¼Óà 2 ¸ö×Ö½Ú¡£ÖµÎª 0 ±íʾ²»É¾³ýÊý¾Ý¡£ÖµÎª NULL Ôòɾ³ýÏÖÓÐ text »ò image ÁÐÖÐ´Ó insert_offset λÖÿªÊ¼µ½Ä©Î²µÄËùÓÐÊý¾Ý¡£
WITH LOG
ÔÚ SQL Server 2000 Öб»ºöÂÔ¡£ÔÚ SQL Server 2005 ÖУ¬ÈÕÖ¾¼Ç¼ÓÉÊý¾Ý¿âµÄʵ¼Ê»Ö¸´Ä£Ð;ö¶¨¡£
inserted_data
Òª²åÈëÏÖÓÐ text¡¢ntext »ò image ÁÐµÄ insert_offset λÖõÄÊý¾Ý¡£ÕâÊǵ¥¸ö char¡¢nchar¡¢varchar¡¢nvarchar¡¢binary¡¢var


Ïà¹ØÎĵµ£º

sqlʱ¼äº¯ÊýÏê½â

1.      µ±Ç°ÏµÍ³ÈÕÆÚ¡¢Ê±¼ä
        select getdate()
2. dateadd      ÔÚÏòÖ¸¶¨ÈÕÆÚ¼ÓÉÏÒ»¶Îʱ¼äµÄ»ù´¡ÉÏ£¬·µ»ØÐ嵀 datetime Öµ
       ÀýÈ磺ÏòÈÕÆÚ¼ÓÉÏ2Ìì
    &nbs ......

ÈçºÎжÔØSQL Server 2005

жÔØSQL Server 2005µÄ·½·¨Ö®Ò»£¬·ÅÔÚÕâ¶ùÖ»ÊÇΪÁ˼Çס£º
1£º°ÑSQL Server2005µÄ°²×°ÅÌ£¨°²×°Îļþ£©·ÅÈëµ½¹âÇý¡£
2£º´ò¿ªÈçÏ·¾¶£º¿ªÊ¼/ÔËÐУ¬ÊäÈ룺cmd
3£ºÊäÈëÏÂÁÐÃüÁ
 
Start /wait \setup.exe /qb REMOVE=ALL INSTANCENAME=£º¹ÜÇøÅÌ·û£¬ÀýÈ磺G£º¡¢H£ºµÈ£»£º°²×°µÄSQLServerʵÀýÃû³Æ£¬Ä¬ÈÏֵΪ£º¹¦ÄÜ ......

SQLÓï¾äÓï·¨

SQLÓï¾äÓï·¨
Ŀ¼
13.1. Êý¾Ý¶¨ÒåÓï¾ä
13.1.1. ALTER DATABASEÓï·¨
13.1.2. ALTER TABLEÓï·¨
13.1.3. CREATE DATABASEÓï·¨
13.1.4. CREATE INDEXÓï·¨
13.1.5. CREATE TABLEÓï·¨
13.1.6. DROP DATABASEÓï·¨
13.1.7. DROP INDEXÓï·¨
13.1.8. DROP TABLEÓï·¨
13.1.9. RENAME TABLEÓï·¨
13.2. Êý¾Ý²Ù×÷Óï¾ ......

[ת]SQLÐÐÁл¥»»

ÎÊÌ⣺¼ÙÉèÓÐÕÅѧÉú³É¼¨±í(tb)ÈçÏÂ:
ÐÕÃû ¿Î³Ì ·ÖÊý
ÕÅÈý ÓïÎÄ 74
ÕÅÈý Êýѧ 83
ÕÅÈý ÎïÀí 93
ÀîËÄ ÓïÎÄ 74
ÀîËÄ Êýѧ 84
ÀîËÄ ÎïÀí 94
Ïë±ä³É(µÃµ½ÈçϽá¹û)£º 
ÐÕÃû ÓïÎÄ Êýѧ ÎïÀí 
---- ---- --- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ