Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 Server ÈÕÆÚ¸ñʽ»¯º¯Êý

Sql Server ÖÐÒ»¸ö·Ç³£Ç¿´óµÄÈÕÆÚ¸ñʽ»¯º¯Êý
Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AM
Select CONVERT(varchar(100), GETDATE(), 1): 05/16/06
Select CONVERT(varchar(100), GETDATE(), 2): 06.05.16
Select CONVERT(varchar(100), GETDATE(), 3): 16/05/06
Select CONVERT(varchar(100), GE ......

SQL Server 2008 й¦ÄÜ

SQL Server 2008 й¦ÄÜ
 
 ÓÃÓÚ¹ÜÀíµÄй¦ÄÜÓÐÄÄЩ£¿
¶ÔÓÚ¾­³£Òª¸ºÔð¹ÜÀí·Ö²¼ÔÚÊýʮ̨ÉõÖÁÊý°Ų̀·þÎñÆ÷ÖеÄÊýÒ԰ټƻòǧ¼ÆµÄ´óÐ͸´ÔÓÊý¾Ý¿â»·¾³µÄÊý¾Ý¿â¹ÜÀíÔ±¶øÑÔ£¬ÐµIJßÂÔ¹ÜÀí¡¢¶à·þÎñÆ÷²éѯ¹¦ÄÜ¡¢ÅäÖ÷þÎñÆ÷ÒÔ¼°Êý¾ÝÊÕ¼¯Æ÷/¹ÜÀí²Ö¿â¹¦ÄÜΪËûÃǸ³ÓèÁËÇ¿´óµÄÄÜÁ¦¡£
 
 ÓÃÓÚ¿ÉÉìËõÐÔµÄй¦ÄÜÓÐÄ ......

sql Ö´ÐÐ˳Ðò

SQL SelectÓï¾äÍêÕûµÄÖ´ÐÐ˳Ðò
2009-06-02 15:57
SQL SelectÓï¾äÍêÕûµÄÖ´ÐÐ˳Ðò£º1¡¢from×Ó¾ä×é×°À´×Ô²»Í¬Êý¾ÝÔ´µÄÊý¾Ý£»2¡¢where×Ó¾ä»ùÓÚÖ¸¶¨µÄÌõ¼þ¶Ô¼Ç¼ÐнøÐÐɸѡ£»3¡¢group by×Ӿ佫Êý¾Ý»®·ÖΪ¶à¸ö·Ö×飻4¡¢Ê¹Óþۼ¯º¯Êý½øÐмÆË㣻5¡¢Ê¹ÓÃhaving×Ó¾äɸѡ·Ö×飻
ÒÔϽáÂÛÊÇͨ¹ýÔÚSql Server2000ÉϵÄʵÑéµÃ³öµÄ½áÂÛ£¬ ......

ÈçºÎжÔØSQL Server 2005

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

sqlÓαê

ÒòΪҪ¸ù¾ÝºÜ¸´ÔӵĹæÔò´¦ÀíÓû§Êý¾Ý£¬ËùÒÔÕâÀïÓõ½Êý¾Ý¿âµÄÓαꡣƽʱ²»ÔõôÓÃÕâ¸ö£¬Ð´ÔÚÕâÀï´¿´âΪ×Ô¼º±¸¸öÍü¡£
--½«Ñ§¼®ºÅÖظ´µÄ·ÅÈëÁÙʱ±í tmp_zdsoft_unitive_code(³ý¸ßÖÐѧ¶ÎÍâ)
drop table tmp_zdsoft_unitive_code;
select s.id ,sch.school_code,sch.school_name,s.student_name,s.unitive_code,s.identity_car ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ