sqlserverÄÚ²¿º¯ÊýÎÊÌâ
ÎÒÔÚѧ×öÂÛ̳
ÀïÃæÓиöusers±í
±íÀïÓÐ experience£¨¾ÑéÖµ£© ºÍ rank£¨µÈ¼¶£©Á©ÁÐ
ÎÒÏëʹÓÃQQ¶·µØÖ÷ÀïÃæµÄµÈ¼¶ÖƶÈ
µÈ¼¶ ÐèÒª¾Ñé
°üÉí¹¤ ÎÞ
¶Ì¹¤ 10
³¤¹¤ 25
µè»§ 40
ƶũ 80
Óæ·ò 140
ÁÔÈË 230
ÖÐÅ© 365
¸»Å© 500
Õƹñ 700
ÉÌÈË 1000
ÑÃÒÛ 1500
С²ÆÖ÷ 2200
´ó²ÆÖ÷ 3000
СµØÖ÷ 4000
´óµØÖ÷ 5500
ÖªÏØ 7700
ͨÅÐ 10000
Öª¸® 14000
×ܶ½ 20000
Ѳ¸§ 30000
Ø©Ïà 45000
µÛÍõ 70000
µ±Óû§¾ÑéÖµ£¨experienceÁеÄÖµ£©Ôö¼Óʱ£¬µÈ¼¶£¨rankÁеÄÖµ£©Ò²Ëæןıä
Õâ¸ö¹ý³Ì¿ÉÒÔÔÚ³ÌÐòºǫ́×ö£¬µ«ÊÇÃ÷ÏÔÒªÕ¼ÓúܴóµÄ·þÎñÆ÷×ÊÔ´¡£
ÎÒÏëÖªµÀÄܲ»ÄÜÔÚsqlserverÄÚ²¿×ö£¿
±ÈÈçµ± experienceÁÐÖµ¸Ä±äʱ£¬×Ô¶¯´¥·¢Ò»¸öÄÚ²¿º¯Êý£¿
sqlserverÎÒÁ˽âµÄ²»ÊÇÌ«¶à£¬Çë¸÷λ´óÏÀ°ïæ¡£
google ´¥·¢Æ÷
create Trigger Level
for Update
As TableName
begin
if (****) then
*****
else
*****
end;
2005ÖпÉÒÔ¶¨ÒåDML´¥·¢Æ÷¡£Õâ¸öʱºò¿ÉÒÔ½øÐвÙ×÷¡£Äã¿ÉÒÔ¿´¿´´¥·¢Æ÷µÄ֪ʶ
Ïà¹ØÎÊ´ð£º
ͬÑùµÄÊý¾Ýsqlserver¾¹ýÊÕËõ£¬Çå¿ÕÈÕÖ¾ ×îºó´óСÊÇ196M
ÆäÖÐÖ»ÓÐÒ»¸ö±íµÄÊý¾Ý¶àһЩ ´óÔ¼42ÍòÌõÊý¾Ý£¬µ¼³ö³ÉÎı¾ºóÊÐ62M
µ«ÎÒ°ÑÕû¸öÊý¾Ý¿âµ¼³öµ½ASAÊý¾Ý¿âºóÊý¾ÝÎļþÊÇ48M£¬ÈÕÖ¾ÎļþÊÇ40M£¬
Ϊʲô»á²î±ðÕâô´ó£ ......
Order by ʱ¼ä×ֶΠdesc
ÅŲ»ÁË˳ÐòÁË
Ç°ÌáÊÇÎÒÕâ¸öÊÇÒ»¸öÊÔͼ£¿
ËûÔÚÐÞ¸ÄÊÔͼÀïÃæËüÅÅÐòÁË£¡¿ÉÊǵÈÎÒ´ò¿ªÊÔͼ²é¿´µÄʱºòÊý¾Ý²¢Ã»ÓнøÐÐÅÅÐò£¡£¡ºÜÊÇÓôÃÆ£¡Ï£Íû¸÷Ϊ¸ßÊÖÖ¸µã£¡£¡
¼±¼±£¡£¡£¡£¡
ËûÔÚÐÞ¸ÄÊ ......
ÔÚÒ»¸ö±íͬʱ¸üжàÌõÊý¾Ý ²»ÒªËµÓÃin
¸÷λ´óϺ°ï°ïæ
ʲôÒâ˼?ÐèҪʲôÌõ¼þ?²»ÐèÒªÌõ¼þÄǾÍÖ±½Ó¸üÐÂßÂ
update xxx set yyy=zzz
Ò»´ÎUpdateÓï¾ä£¬Ö»ÄܸüÐÂÒ»¸ö£¬ÒªÃ´¶à´ÎUpdate,Ҫôдһ¸ö´æ´¢¹ý³Ì£¬´æ´¢¹ý³Ì ......
ÓÐÁ½¸ö±íÒ»¸öÊÇ¿Í»§¶©µ¥±í(¶©µ¥ºÅ£¬²úÆ·ºÅ£¬ÊýÁ¿£¬¼Û¸ñ£©,Ò»¸öÊÇÉÌÆ·±í(²úÆ·ºÅ£¬²úÆ·Ãû£¬²úÆ·ÊýÁ¿)
ÈçºÎÓô¥·¢Æ÷Íê³Éµ±²åÈë¿Í»§¶©µ¥±íºó£¬»á×Ô¶¯¸üÐÂÉÌÆ·±íÖеIJúÆ·ÊýÁ¿
Èô²úÆ·ÊýÁ¿²»¹»Ê±±¨´í£¨¿ÉÊä³öÎÄ×Ö±¨´íÐÅÏ¢ ......