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
³õѧÕß±ØÐëÕÆÎÕµÎ
Ïà¹ØÎĵµ£º
½ñÌìµ÷ÊÔ·þÎñÆ÷£¬´´½¨ÁËÒ»¸öеÄÊý¾Ý¿âÓû§£¬Ïë¸øËû·ÖÅäЩȨÏÞ£¬¹ÜÀíÆäÖеÄÒ»¸öÊý¾Ý¿â¡£µ«ÊǵÈÒ»Çж¼´´½¨ºÃÁË£¬È´·¢ÏÖËûÁ¬µÇ½¶¼Ã»°ì·¨µÇ½¡£Ææ¹Ö£¬dbaµÄ½ÇÉ«¶¼¸øÁË»¹ÊDz»ÐС£
²é¿´ÎÊÌ⣬ÕÒ³ö½â¾ö·½°¸£º
ÆóÒµ¹ÜÀíÆ÷(2000)»òÕßmangement studioÁ¬½ÓÄãµÄʵÀý--ÓÒ¼üʵÀý--ÊôÐÔ--°²È«ÐÔÀïÃæ¿´¿´Éí·ÝÑé֤ģʽÊÇ·ñΪ"sql server ......
ʹÓÃSQL SERVER2005µÄʱºòÓöµ½ÁËÖÐÎÄ×Ö·ûΪÂÒÂëµÄÇé¿ö£¬¾¹ýÑо¿·¢ÏÖ£¬ÉèÖÃSQLµÄÅÅÐò¹æÔò¿ÉÒÔ½â¾öÕâ¸öÎÊÌâ¡£
1¡¢µÇ¼·þÎñÆ÷´ò¿ªMicrosoft SQL Server Management Studio¡£
2¡¢ÔÚÒªÐ޸ĵÄÊý¾Ý¿âÉϵ¥»÷Êó±êÓÒ¼ü£¬²¢Ñ¡Ôñ“ÊôÐÔ”¡£
3¡¢ÔÚµ¯³öµÄÊý¾Ý¿âÊôÐÔ´°¿ÚÖеã»÷“Ñ¡ÔñÒ³”ÖеēѡÏ£ ......
Æô¶¯Êý¾Ý¿âÓʼþ¹¦ÄÜ
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 = 'ÓÊÏäÕ ......