×ÜÊý±í
×ֶΠnum,freq
numÊÇËùÊôÆÚµÄ×ÜÊý£¬freqÊǼǼ¸ÃÊýÖµËùÊôÄÄÒ»ÆÚµÄ
ÇøÓò±í
×ֶΠarea_name,tot,freq
ÇøÓòÃû³Æ£¬¸ÃÇøÓòµÄ×ÜÊý£¬ËùÊôÆÚ
Á½ÕÅ±í¿¿freq¹ØÁª£¬ÇÒ²»ÊÇ×ÔÔö×ֶΣ¬²»ÊÇÖ÷¼ü
¼ÙÉè À´ÁËÒ»ÅúÐÅÏ¢£¬ÊǵÚ20ÆÚ Õã½ÊýÁ¿ÊÇ200 ×ÜÊýÊÇ2000
ÉÏÆÚ ¼´19ÆÚ Õã½ ......
µã»÷¡°·þÎñ¹ÜÀíÆ÷¡±£¬µã»÷¡°¿ªÊ¼/¼ÌÐø¡±£¬×ÜÊÇÏÔʾ¡°ÓÉÓڵǼʧ°Ü¶øÆô¶¯·þÎñ¡±£¬È»ºóÔٴγö´í£¬²»Äܹ»½øÈ룬Ҳ²»Äܹ»²é¿´ÊôÐÔ£¬ÇëÎÊ´ó¼Ò¸ÃÔõô°ì£¿
ÎÒÊDzſªÊ¼Ñ§Ï°Êý¾Ý¿â£¬ÇëÎÊ´ó¼ÒÓÐûÓÐʲôºÃһЩµÄ½¨Òé»òÕßÊÇѧϰµÄÍøÖ·£¬Ð»Ð»´ó¼Ò~
ʹÓð²×°SQL SERVERµÄÃÜÂëµÇ¼·þÎñÆ÷.
.........
¹À¼ÆÊÇ·þÎñûÓа²×°ÕýÈ· ......
INSERT INTO StudAchieve(studID,studName)
VALUES('2','abc'),('2','bcd'),('2','cde')
Æ´ÁË°ëÌìÒ²²»¶Ô£¬¼°°¡ ¡£¡£¡£¡£
SQL code:
INSERT INTO StudAchieve(studID,studName)
select '2','abc'
union all select '2','bcd'
u ......
ÏÖÔÚÐèÒªÔÚSQL ServerʵÏÖ¶¨Ê±±¨±íÊä³öµÄ¹¦ÄÜ£¬
ÀýÈçÔÚÿÌìµÄ12µãÉú³Éµ±ÌìµÄ±¨±í£¬²¢Êä³öµ½Excel»òÆäËü¸ñʽµÄÎļþÖС£
ÎÒµ÷²éÁËһϣ¬ËµSQL Server ±¨±í·þÎñÓÐÕâ¸ö¹¦ÄÜ£¬µ«ÊÇûÓùý±¨±í·þÎñ£¬²»ÖªÈçºÎʵÏÖ£¬ÇëÓоÑéµÄÅóÓÑ°ïæ¡£
Óö¨Ê±×÷Òµ
SQL code:
¶¨Ê±×÷ÒµµÄÖƶ¨
ÆóÒµ¹ÜÀíÆ÷
--¹ÜÀí
--SQL Server´úÀí ......
Óöµ½µÄÏÖÏóÊÇ Í¬Ò»¸ö±íµÄquery»á×èÈûupdate
sql query ºÍupdate ²Ù×÷ query»á×èÈûupdate²Ù×÷Âð
Ôõô½â¾ö
ÊDz»ÊÇʲôÉèÖò»¶Ô»¹ÊÇÔõµÄ
Èç¹û»áµÄ»°£¬ÄÇͬһ¸ö±íµÄƵ·±query and update ÄÇÊý¾Ý¿â²»×èÈûµÄ²»ÏñÑù×Ó°¡
Çó½â
ѧϰ£¬°ï¶¥£¬×îºÃÃèÊöһϾßÌåÒµÎñ
SQL code:
......
±ÈÈç ÎÒÓÐÒ»¸ö±í bumen
ÀïÃæ ÓÐÒ»¸öÁÐ quanxian
id name quanxian
1 a 001;002;003;
2 b 002;003;
3 c 003;004;
4 d 001;002;003;
ÎÒµÄÒâ˼ÊÇ°ÑquanxianÁÐ ......