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

SQL ³£ÓÃµÄ Ôö¡¢É¾¡¢¸Ä¡¢²é »¹ÊÇÀμÇÓÚÐÄ àÞ

¼¸¸ö¼òµ¥µÄ»ù±¾µÄsqlÓï¾ä
 
Ñ¡Ôñ£ºselect * from table1 where ·¶Î§
²åÈ룺insert into table1(field1,field2) values(value1,value2)
ɾ³ý£ºdelete from table1 where ·¶Î§
¸üУºupdate table1 set field1=value1 where ·¶Î§
²éÕÒ£ºselect * from table1 where field1 like ’%value1%’
ÅÅÐò£ºselect * from table1 order by field1,field2 [desc]
×ÜÊý£ºselect count ( *)   as totalcount from table1
ÇóºÍ£ºselect sum(field1) as sumvalue from table1
ƽ¾ù£ºselect avg(field1) as avgvalue from table1
×î´ó£ºselect max(field1) as maxvalue from table1
×îС£ºselect min(field1) as minvalue from table1
 
 
 
³õѧÕß±ØÐëÕÆÎÕµÎ


Ïà¹ØÎĵµ£º

SQL 2005´´½¨Óû§ÎÊÌâ

½ñÌìµ÷ÊÔ·þÎñÆ÷£¬´´½¨ÁËÒ»¸öеÄÊý¾Ý¿âÓû§£¬Ïë¸øËû·ÖÅäЩȨÏÞ£¬¹ÜÀíÆäÖеÄÒ»¸öÊý¾Ý¿â¡£µ«ÊǵÈÒ»Çж¼´´½¨ºÃÁË£¬È´·¢ÏÖËûÁ¬µÇ½¶¼Ã»°ì·¨µÇ½¡£Ææ¹Ö£¬dbaµÄ½ÇÉ«¶¼¸øÁË»¹ÊDz»ÐС£
²é¿´ÎÊÌ⣬ÕÒ³ö½â¾ö·½°¸£º
ÆóÒµ¹ÜÀíÆ÷(2000)»òÕßmangement studioÁ¬½ÓÄãµÄʵÀý--ÓÒ¼üʵÀý--ÊôÐÔ--°²È«ÐÔÀïÃæ¿´¿´Éí·ÝÑé֤ģʽÊÇ·ñΪ"sql server ......

SQL 2005ÖÐÎÄÂÒÂëÎÊÌâ

ʹÓÃSQL SERVER2005µÄʱºòÓöµ½ÁËÖÐÎÄ×Ö·ûΪÂÒÂëµÄÇé¿ö£¬¾­¹ýÑо¿·¢ÏÖ£¬ÉèÖÃSQLµÄÅÅÐò¹æÔò¿ÉÒÔ½â¾öÕâ¸öÎÊÌâ¡£
1¡¢µÇ¼·þÎñÆ÷´ò¿ªMicrosoft SQL Server Management Studio¡£
2¡¢ÔÚÒªÐ޸ĵÄÊý¾Ý¿âÉϵ¥»÷Êó±êÓÒ¼ü£¬²¢Ñ¡Ôñ“ÊôÐÔ”¡£
3¡¢ÔÚµ¯³öµÄÊý¾Ý¿âÊôÐÔ´°¿ÚÖеã»÷“Ñ¡ÔñÒ³”ÖеēѡÏ£ ......

SQL Server 2005/2008Êý¾Ý¿âÓʼþ

Æô¶¯Êý¾Ý¿âÓʼþ¹¦ÄÜ
 
sp_configure 'show advanced', 1;
GO
RECONFIGURE;
GO
sp_configure 'Database Mail XPs', 1;
GO
RECONFIGURE;
GO
 
 
 
 -- ÅäÖÃÊý¾Ý¿âÓʼþ
 -- Ìí¼ÓÓʼþÕË»§
execute msdb.dbo.sysmail_add_account_sp
    @account_name = 'ÓÊÏäÕ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ