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

Sql Server »ù´¡

Èí¼þ £º Sql Server 2005
 
    ÕâÀï²¢²»ÊÇSQLÓï·¨´óÈ«£¬ÒÔÏÂÊdz£ÓõÄÓï¾ä£¬¶Ô£¨Êý¾Ý¿â¡¢±í¡¢×ֶΡ¢Êý¾Ý£©µÄÔöɾ¸Ä²é£¬Èç¹ûÐèÒªÏêϸȫÃæµÄTransact-SQLÓï¾ä£¬¿ÉÒÔ²éSql ServerÁª»ú´ÔÊ飬ÄÇÀïÊÇ×îÈ«µÄ×ÊÁÏ£¬Ò»°ã°²×°Sql Server¶¼»áĬÈÏ°²×°¡£
´ò¿ªSql ServerÁª»ú´ÔÊé
¿ªÊ¼ à ³ÌÐò à  Microsoft SQL Server 2005  à ÎĵµÓë½Ì³Ì à  Sql ServerÁª»ú´ÔÊé
´ò¿ªTransact – SQL²Î¿¼
Sql Server 2005 Áª»ú´ÔÊé à  Sql Server ÓïÑԲο¼ à  Transact – SQL²Î¿¼
 
 
Êý¾Ý¿â
´´½¨
create database TestDB
ÐÞ¸Ä
ALTER DATABASE TestDB MODIFY NAME = TestDataBase     /* ÉÙʹÓÃ*/
²éѯËùÓÐ
SELECT Name from Master..SysDatabases ORDER BY Name  /* Ò»°ãºÜÉÙʹÓÃ*/
ɾ³ý
drop database TestDB
 
±í
´´½¨
Create table house(
    Rates int,
    Grow int,
    Place varchar(10),
    Year int
)
²éѯËùÓÐ
SELECT Name from SysObjects Where XType='U' ORDER BY Name
ÐÞ¸Ä
sp_rename house , NewHouse
ɾ³ý
drop table house
 
 
×Ö¶Î
Ôö¼Ó
ALTER TABLE NewHouse
ADD column_name integer
ɾ³ý
ALTER TABLE NewHouse
DROP COLUMN column_name
ÐÞ¸Ä
ALTER TABLE NewHouse
ALTER COLUMN column_name varchar
²éѯ
SELECT Name from SysColumns
WHERE id=Object_Id('TableName')
 
Êý¾Ý
Ôö¼Ó
insert into NewHouse values(10000,100,'±±¾©',2010)
²éѯ
select *  from NewHouse
ÐÞ¸Ä
update NewHouse set Grow = 200 where Rates = 10000
ɾ³ý
delete from NewHouse where Rates = 10000
 
 ºÜ¶àÈ˲»Ï²»¶¿´Sql ServerÁª»ú´ÔÊ飬ÎÒÒ»¿ªÊ¼Ò²²»Ï²»¶£¬Ò»´ó¶Ñ [  ]  |  {} ÉõÖÁÒ»¸ö[ ]ÀïÃæÓÖǶÌ׶à¸ö[ ] £¬°³ÀàÉñ°¡£¡²»ÊÇÎÒµÄÔ©¼ÒÅÉÀ´¹ÊÒâÍæÎҵİɡ£µÃ£¡»¹²»ÈçÖ±½ÓÔÚÍøÉϲéϱðÈ˸øµÄʾ·¶ÄØ£¡µ«ÊÇ×÷ΪITÐÐÒµÈË£¬ÊìÁ·µÄ²éÔÄÎĵµÊDZر¸µÄÄÜÁ¦£¬ÆäʵÏë¿´¶®ÕâЩ[ ] ,{}Ò²ºÜ¼òµ¥£¬ÏÈÖªµÀÕâЩÊÇʲôÒâ˼¡£
 
[ ]£¨·½À¨ºÅ£©¿ÉÑ¡Óï·¨Ïî¡£²»Òª¼üÈë·½À¨ºÅ¡£
{ }£¨´óÀ¨ºÅ£©±ØÑ¡Óï·¨Ïî¡£²»Òª¼üÈë´óÀ¨ºÅ¡£
Õª×Ô £º
Sql Server 2005 Áª»ú´ÔÊ


Ïà¹ØÎĵµ£º

¶Ôpl/sql Óï¾äµÄÓÅ»¯£¨Éϼ¯£©

¶ÔÕâ¸ö½øÐÐÓÅ»¯
select n5001 Ãŵê,n5002 ²¿ÃÅ,n5004 С·ÖÀà,n5019 ÉÌÆ·±àÂë,c01d21 ÉÌÆ·Ãû³Æ,
nvl(xse,0)-nvl(dzxs,0) ÏúÊÛ,
mle ëÀû,
nvl(xl,0)-nvl(dzsl,0) ÏúÁ¿
 from
(select n5001,n5002,n5004,n5019,sum(n5011) xse,sum(n5016) mle,sum(n5023) xl
from n50
where to_char(n5010,'yyyymmdd')>='20 ......

Microsoft SQL Server 2008°²×°Í¼½â(Windows 7)

Microsoft SQL Server 2008
°²×°Í¼½â(Windows 7)
FoxDie
2010Äê04ÔÂ17ÈÕ
¼ò½é
±¾ÎÄÏêϸ¼Ç¼ÁËÒ»´ÎÍêÕûµÄMicrosoft SQL Server 2008ÔÚWindows 7²Ù×÷ϵͳÉϵݲװ¹ý³Ì¡£×¢Ò⣺Microsoft SQL Server 2008ÓëWindows 7²Ù×÷ϵͳ´æÔÚÒ»¶¨µÄ¼æÈÝÐÔÎÊÌ⣬ÔÚÍê³É°²×°Ö®ºóÐèҪΪMicrosoft SQL Server 2008°²×°SP1²¹¶¡¡£ÏÂÃ潫Ïêϸ ......

SQL Server 2000Êý¾Ý¿âµÄ¶¨Ê±±¸·ÝÉèÖÃ

ÀûÓÃSQL2000µÄ¶¨Ê±±¸·Ý¹¦ÄÜ£¬ÄܺܺöԷþÎñÆ÷ÉϵÄÖØÒªÊý¾ÝÐÅÏ¢½øÐÐÍêÕûµÄ¶¨Ê±±¸·Ý£¬ÒÔ±ãÔÚ·þÎñÆ÷̱»¾»òÊý¾Ý¿â³öÏÖËð»µÊ±¼°Ê±µÄ½øÐлָ´¹¤×÷£¬ÒÔÈ·±£Æ½Ê±µÄ¹¤×÷ÄÜÕý³£µÄ½øÐС£ÏÂÃæÏò´ó¼Ò½éÉÜÒ»ÏÂSQL2000¶¨ÆÚ±¸·ÝµÄÉèÖ÷½·¨£¬¾ßÌåÈçÏ£º
1.         ´ò¿ªSQL2000µÄÆóÒµ¹ÜÀíÆ÷
2.&nbs ......

Microsoft SQL Server 2005 ÕûºÏ¡¢¼¯³ÉSP3·½·¨

½âѹ SQLServer2005SP3-KB955706-x86-CHS.exe Îļþ(ʹÓà WinRAR ¿ÉÖ±½Ó½âѹ,»òʹÓà /extract)
½âѹºóÎļþ¼Ð ËÑË÷ “*.msi *.msp” £¬È»ºó¸´ÖÆËùÓÐËÑË÷µ½µÄÎļþ ·Åµ½ D:\SQL2005\SP3 ÖÐ.
ÌáÈ¡ cs_sql_dev_all_dvd.iso(SQL Server 2005 ¿ª·¢°æ) ÖÐµÄ x86 °æ±¾£¬·Åµ½ D:\SQL2005\MSSQL ÖУ»´Ëʱ D:\SQL2005\M ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ