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

SQLÀàÐÍ

SQL ServerÊý¾ÝÀàÐÍ2009Äê02ÔÂ02ÈÕ ÐÇÆÚÒ» 11:20Êý¾ÝÀàÐÍÊÇÊý¾ÝµÄÒ»ÖÖÊôÐÔ£¬ÊÇÊý¾ÝËù±íʾÐÅÏ¢µÄÀàÐÍ¡£ÈκÎÒ»ÖÖÓïÑÔ¶¼ÓÐËü×Ô¼ºËù¹ÌÓеÄÊý¾ÝÀàÐÍ£¬SQL ServerÌṩһÏÂ25ÖÖ¹ÌÓеÄÊý¾ÝÀàÐÍ¡£ SQL ServerÊý¾ÝÀàÐÍÒ»ÀÀ±í
¡¡¡¡·Binary [(n)]
·Varbinary [(n)]
·Char [(n)]
·Varchar[(n)]
·Nchar[(n)]
·Nvarchar[(n)]
·Datetime
·Smalldatetime
·Decimal[(p[,s])]
·Numeric[(p[,s])]
·Float[(n)]
·Real
·Int
·Smallint
·Tinyint
·Money
·Smallmoney
·Bit
·Cursor
·Sysname
·Timestamp
·Uniqueidentifier
·Text
·Image
·Ntext
1¡¢¶þ½øÖÆÊý¾ÝÀàÐÍ£º
      ¶þ½øÖÆÊý¾ÝÓÉÊ®Áù½øÖÆÊý±íʾ£¬¿ÉÒÔʹÓà binary¡¢varbinary ºÍ image Êý¾ÝÀàÐÍ´æ´¢¡£
·binary ¹Ì¶¨³¤¶È£¨×î¶àΪ8K£©µÄ¶þ½øÖÆÊý¾ÝÀàÐÍ¡£
¡¡¡¡binary [ ( n ) ]
¹Ì¶¨³¤¶ÈµÄ n ¸ö×Ö½Ú¶þ½øÖÆÊý¾Ý¡£N ±ØÐë´Ó 1 µ½ 8,000¡£´æ´¢¿Õ¼ä´óСΪ n+4 ×Ö½Ú¡£
·varbinary ¿É±ä³¤¶È£¨×î¶àΪ8K£©µÄ¶þ½øÖÆÊý¾ÝÀàÐÍ¡£
¡¡¡¡varbinary [ ( n ) ]
       n ¸ö×ֽڱ䳤¶þ½øÖÆÊý¾Ý¡£n ±ØÐë´Ó 1 µ½ 8,000¡£´æ´¢¿Õ¼ä´óСΪʵ¼ÊÊäÈëÊý¾Ý³¤¶È +4
      ¸ö×Ö½Ú£¬¶ø²»ÊÇ n ¸ö×Ö½Ú¡£ÊäÈëµÄÊý¾Ý³¤¶È¿ÉÄÜΪ 0 ×Ö½Ú¡£ÔÚ SQL-92 ÖÐ varbinary µÄ
      ͬÒå´ÊΪ binary varying¡£
·image ÓÃÀ´´æ´¢³¤¶È³¬¹ý 8 KB µÄ¿É±ä³¤¶ÈµÄ¶þ½øÖÆÊý¾Ý¡£
      ³ý·ÇÊý¾Ý³¤¶È³¬¹ý 8KB£¬·ñÔòÒ»°ãÒËÓà varbinary ÀàÐÍÀ´´æ´¢¶þ½øÖÆÊý¾Ý¡£Ò»°ãÓÃÀ´´æ·Å Microsoft Word Îĵµ¡¢Microsoft Excel µç×Ó±í¸ñ¡¢°üº¬Î»Í¼µÄͼÏñ¡¢Í¼Ðν»»»¸ñʽ (GIF) ÎļþºÍÁªºÏͼÏñר¼Ò×é (JPEG) Îļþ¡£
      ÔÚ Image Êý¾ÝÀàÐÍÖд洢µÄÊý¾ÝÊÇÒÔλ×Ö·û´®´æ´¢µÄ£¬²»ÊÇÓÉ SQL Server ½âÊ͵쬱ØÐëÓÉÓ¦ÓóÌÐòÀ´½âÊÍ¡£ÀýÈ磬ӦÓóÌÐò¿ÉÒÔʹÓÃBMP¡¢TIEF¡¢GIF ºÍ JPEG ¸ñʽ°ÑÊý¾Ý´æ´¢ÔÚ Image Êý¾ÝÀàÐÍÖС£
2¡¢×Ö·ûÊý¾ÝÀàÐÍ
      ×Ö·ûÊý¾ÝÓÉ×Öĸ¡¢·ûºÅºÍÊý×Ö×é³É¡£Ê¹Óà char¡¢varchar ºÍ text Êý¾ÝÀàÐÍ´æ´¢¡£
·char ¹Ì¶¨³¤¶È£¨²»³¬¹ý 8 KB£©µ


Ïà¹ØÎĵµ£º

SQL´¥·¢Æ÷Óï·¨²Î¿¼

ת×Ôhttp://www.tzwhx.com/newOperate/Html/3/31/311/16609.html
Óï·¨
CREATE TRIGGER trigger_name
ON { table | view }
[ WITH ENCRYPTION ]
{
    { { FOR | AFTER | INSTEAD OF } { [ INSERT ] [ , ] [ UPDATE ] }
        [ WITH APPEND ]
   ......

SQL SERVER 2000 "MMCÎÞ·¨´´½¨¹ÜÀíµ¥Ôª

·½°¸Ò» ÔËÐÐmmc£¬È»ºó²Ù×÷£¬¿ØÖÆÌ¨–Ìí¼Ó/ɾ³ý¹ÜÀíµ¥Ôª–Ìí¼Ó–ÕÒµ½Microsoft SQL ÆóÒµ¹ÜÀíÆ÷–Ìí¼Ó–¹Ø±Õ–È·¶¨£¨×¢£º´Ë´¦µã»÷Ìí¼ÓÍêºó¾Í¿ÉÒԹرÕÁË£¬²»ÒªµÈ´ýÏìÓ¦£¬Èç¹ûÄã¶à´Îµã»÷ÁËÌí¼Ó£¬ºóÀ´¿ÉÒÔ¿´µ½n¶à¸ösqlÆóÒµ¹ÜÀíÆ÷¡£¡£¡££©£¬Ôٻص½¿ØÖÆÌ¨–Ñ¡Ïî–¿ØÖÆÌ¨Ä£Ê½Ñ¡Ôñ”Óà ......

OracleÖÐSQLÓï¾ä½âÎöµÄ²½Öè

ÎÒÃǶ¼ÖªµÀÔÚOracleÖÐÿÌõSQLÓï¾äÔÚÖ´ÐÐ֮ǰ¶¼ÐèÒª¾­¹ý½âÎö£¬ÕâÀïÃæÓÖ·ÖΪÈí½âÎöºÍÓ²½âÎö¡£ÄÇôÕâÁ½ÖÖ½âÎöÓкβ»Í¬Ö®´¦ÄØ£¿ËüÃÇÓÖ·Ö±ðÊÇÈçºÎ½øÐнâÎöÄØ£¿OracleÄÚ²¿½âÎöµÄ²½ÖèÓÖÊÇÈçºÎ½øÐеÄÄØ£¿ÏÂÃæÎÒÃǾÍÕâЩ»°Ìâ½øÐй²Í¬Ì½ÌÖ¡£ ÔÚOracleÖдæÔÚÁ½ÖÖÀàÐ͵ÄSQLÓï¾ä£¬Ò»ÀàΪDDLÓï¾ä£¬ËûÃÇÊÇ´ÓÀ´²»»á¹²ÏíʹÓõģ¬Ò²¾ÍÊÇÿ´ÎÖ´ ......

SQL ServerµÄ ÅÅÐò¹æÔò(collation)³åÍ»ºÍ½â¾ö·½°¸

ʲôÊÇÅÅÐò¹æÔò£¨collation£©
¹ØÓÚSQL ServerµÄÅÅÐò¹æÔò£¬¹À¼Æ´ó¼Ò¶¼²»Ä°Éú£¬ÔÚ´´½¨Êý¾Ý¿âʱÎÒÃǾ­³£ÒªÑ¡ÔñÒ»ÖÖÅÅÐò¹æÔò£¨conllation£©£¬Ò»°ãÎÒÃÇ»áÁôÒ⵽ÿһÖÖÓïÑÔµÄÅÅÐò¹æÔò¶¼ÓÐÐí¶àÖÖ£¬±ÈÈç±ê×¼´ó½¼òÌåÖÐÎÄChinese_PRCµÄÅÅÐò¹æÔò¾ÍÓÐÊýÊ®ÖÖÖ®¶à

ÕâЩÅÅÐò¹æÔòÓÐʲô×÷ÓÃÄØ£¿ÈÃÎÒÃÇÏÈÀ´¿´¿´MS¹Ù·½µÄ½âÊÍ£º
ÅÅÐò¹æÔ ......

sql server ¸ü¸Ä±íµÄËùÊôÓû§µÄÁ½¸ö·½·¨

sql server ¸ü¸Ä±íµÄËùÊôÓû§µÄÁ½¸ö·½·¨
--¸ü¸Äij¸ö±í
exec sp_changeobjectowner 'tablename','dbo'
--´æ´¢¸ü¸ÄÈ«²¿±í
CREATE PROCEDURE dbo.User_ChangeObjectOwnerBatch
@OldOwner as NVARCHAR(128),
@NewOwner as NVARCHAR(128)
AS
DECLARE @Name as NVARCHAR(128)
DECLARE @Owner as NVARCHAR(128)
D ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ