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

Sql Server »ñÈ¡¡¢Ôö¼Ó¡¢Ð޸ġ¢É¾³ý ×Ö¶ÎÃèÊö

»ñÈ¡¡¢Ôö¼Ó¡¢Ð޸ġ¢É¾³ýsqlserver×Ö¶ÎÃèÊö
Select o.name AS tableName, c.name AS columnName, p.[value] AS Description  
from sysproperties p INNER JOIN  
      sysobjects o ON o.id = p.id INNER JOIN  
      syscolumns c ON p.id = c.id AND p.smallid = c.colid  
Where (p.name = 'MS_Description') AND (c.name = 'province') AND (o.name = 'ip_address')  
orDER BY o.name  
 
Ñ¡È¡±íip_addressÖÐ ×Ö¶ÎprovinceµÄÃèÊö  
 
 
 
--´´½¨±í¼°ÃèÊöÐÅÏ¢  
 
create   table   ±í(a1   varchar(10),a2   char(2))  
 
--Ϊ±íÌí¼ÓÃèÊöÐÅÏ¢  
EXECUTE   sp_addextendedproperty   N'MS_Description',   'ÈËÔ±ÐÅÏ¢±í',   N'user',   N'dbo',   N'table',   N'±í',   NULL,   NULL  
 
--Ϊ×Ö¶Îa1Ìí¼ÓÃèÊöÐÅÏ¢  
EXECUTE   sp_addextendedproperty   N'MS_Description',   'ÐÕÃû',   N'user',   N'dbo',   N'table',   N'±í',   N'column',   N'a1' 
EXECUTE   sp_addextendedproperty   N'MS_Description',   '²âÊÔ',   N'user',   N'dbo',   N'table',   N'HR_Employees',   N'column',   N'test'
 
--Ϊ×Ö¶Îa2Ìí¼ÓÃèÊöÐÅÏ¢  
EXECUTE   sp_addextendedproperty   N'MS_Description',   'ÐÔ±ð',   N'user',   N'dbo',   N'table',   N'±í',   N'column',   N'a2' 
--¸üбíÖÐÁÐa1µÄÃèÊöÊôÐÔ£º  
EXEC   sp_updateextendedproperty   'MS_Description','×Ö¶Î1','user',dbo,'table','±í','column',a1  
 
--ɾ³ý±íÖÐÁÐa1µÄÃèÊöÊôÐÔ£º  
EXEC 


Ïà¹ØÎĵµ£º

SQL²éѯÓÅ»¯,×¢ÒâwhereÌõ¼þµÄ˳Ðò

×÷Õß:ÂÞ´ú¾ù ldj_work#126.com   תÔØÇë±£³ÖÍêÕûÐÔ
1.²âÊÔ±í
    employee
    ¹ÍÔ±id     ²¿ÃÅid      н½ð
    emp_id    dept_id    salary
      ......

SQLÖд¦Àíʱ¼äÎÊÌâ°¸Àý

1. »ñÈ¡Êý¾Ý¿âÖе±Ç°Ô·ݵÄÏà¹ØÊý¾Ý
SELECT WorkerSortID, SUM(WorkerCount) AS WorkerMothCount
from WorkerRecord
WHERE (YEAR(WorkerTime) = YEAR({ fn NOW() })) AND (MONTH(WorkerTime)
      = MONTH({ fn NOW() })) AND (WorkerCount > 0) AND (WorkerID = 'wy')
GROUP BY Worker ......

SQL Server 2005ͨ¹ýÈÕÖ¾²é¿´·þÎñÆ÷µÄÔËÐÐÇé¿ö

4.6 ͨ¹ýÈÕÖ¾²é¿´·þÎñÆ÷µÄÔËÐÐÇé¿ö
SQL Server 2005¿ÉÒÔ½«Ä³Ð©ÏµÍ³Ê¼þºÍÓû§×Ô¶¨ÒåµÄʼþ¼Ç¼µ½SQL Server´íÎóÈÕÖ¾ºÍWindowsÓ¦ÓóÌÐòÈÕÖ¾ÖС£ÕâÁ½ÖÖÈÕÖ¾¶¼»á×Ô¶¯±êÉÏʱ¼ä¡£
4.6.1 ÔÚ¡¾Ê¼þ²é¿´Æ÷¡¿Öв鿴·þÎñÆ÷µÄÔËÐÐÇé¿ö
SQL Server 2005·þÎñÆ÷µÄÆô¶¯¡¢¹Ø±ÕºÍÔÝÍ£¶¯×÷£¬¶¼»á²úÉúÒ»¸öʼþ¼Ç¼£¬Õâ¸ö¼Ç¼½«»á¼ÇÔÚWindows ......

¹ØÓÚsqlÈÕÖ¾Îļþ

 Ò»¶Îʱ¼äÀ´£¬Ã¿ÌìµÄ¹¤×÷¶¼±È½ÏÔÓ£¬vb,asp,c#,sql£¬Ã¿Ï×÷¶¼Òª¸ã£¬ÊµÔÚÊÇÀÛ£¡¹¤×÷Ö®Ó࣬ÏëÏ빫˾ºÍ¹¤×÷µÄÇé¿ö£¬¿´À´ÊÇÓбØÒª»»¸ö»·¾³ÁË¡£²»¹ýÒ²ÒªÏÈ°ÑÄ¿Ç°µÄ¹¤×÷´¦ÀíÍê³É°¡¡£
      ×î½üÓÖÓöµ½Ò»¸öÎÊÌ⣺һ¼Ò¿Í»§Ê¹ÓÃÖеÄÊý¾Ý¿â£¬ÈÕÖ¾ÎļþÒì³£Ôö´ó£¬Æ½¾ùÿÌìÔö¼Ó´óÔ¼Ò»¸öG£¬¶øÊý¾ÝÎļþ±ä» ......

SQL Server 2005ÖеÄÎļþºÍÎļþ×é

--> Title  : SQL Server 2005ÖеÄÎļþºÍÎļþ×é
--> Author : wufeng4552
--> Date   : 2009-10-23
1¡¢ÎļþºÍÎļþ×éµÄº¬ÒåÓë¹Øϵ
    ÿ¸öÊý¾Ý¿âÓÐÒ»¸öÖ÷Êý¾ÝÎļþ.ºÍÈô¸É¸ö´ÓÎļþ¡£ÎļþÊÇÊý¾Ý¿âµÄÎïÀíÌåÏÖ¡£ Îļþ×é¿ÉÒÔ°üÀ¨·Ö²¼ÔÚ¶à¸öÂß¼­·ÖÇøµÄÎļþ£¬ÊµÏÖ¸ºÔØƽºâ¡£Îļþ×éÔÊÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ