ʵÑéÒ»£¨À×¾°Éú£©Í¨¹ýSQL Server Management Studio´´½¨¼°¹ÜÀíÊý¾Ý¿â ÏÂÔر¾ÎÄ

±í 4 SC±í½á¹¹ºÍÔ¼Êø

ÁÐÃû³Æ Sno Cno Grade ÀàÐÍ char char tinyint ¿í¶È 8 3 ÔÊÐí¿ÕÖµ ·ñ ·ñ ÊÇ È±Ê¡Öµ Ô¼Êø ´óÓÚµÈÓÚ0£¬Ð¡ÓÚµÈÓÚ100 Ö÷¼ü Íâ¼ü ÊÇ ÊÇ ·ñ ˵Ã÷ ѧºÅ ¿Î³ÌºÅ ³É¼¨ ÊÇ ²½Öèͬ´´½¨¡°Student¡±±í´óÖÂÏàͬ£º 1¡¢Ð½¨±í 2¡¢ÌîÈëÐÅÏ¢

ÉèÖÃÖ÷¼ü£ºÍ¬Ê±Ñ¡ÖС±SnoºÍCno¡±£¬ÓÒ»÷£¬Ñ¡Ôñ¡°ÉèÖÃÖ÷¼ü¡±

ÉèÖÃcheckÔ¼Êø£ºÑ¡ÖС°Grade¡±£¬ÓÒ»÷£¬Ñ¡Ôñ¡°CHECKÔ¼Êø¡±£»

µ¥»÷¡°Ìí¼Ó¡±£¬ÔÚ±í´ïʽÖÐдÈëÔ¼ÊøÌõ¼þ£¬Ãû³Æ¿É×Ô¶¨Òå¸Ä±ä¡£

µ¥»÷¹Ø±Õ¼´¿ÉÍê³É

3¡¢±£´æ£¬²¢ÃüÃûΪ¡°SC¡±

6¡¢Í¨¹ýSQL Server Management Studio¹ÜÀí±í½á¹¹ £¨1£©Ìí¼ÓºÍɾ³ýÁÐ

a. ¸øStudent±íÔö¼ÓÉí¸ß£¨ÒÔÃ×µ¥Î»£©StatureÁÐ £¬ÀàÐÍΪnumeric(4£¬2£©,ÔÊÐíΪ¿ÕÖµ£¬ÇÒÉí¸ßÖµÐèСÓÚ3.0Ãס£

1¡¢Ñ¡ÖÐStudent±í£¬ÓÒ»÷£¬Ñ¡Ôñ¡°Éè¼Æ¡±£¬³öÏÖ±íStudent

2¡¢ÔÚStudent±íÖÐÖ±½ÓÌí¼ÓStatureµÈÒ»ÐÐÐÅÏ¢

3¡¢¶Ô¡°Stature¡±Ìí¼ÓcheckÔ¼Êø

µ¥»÷¡°¹Ø±Õ¡±Íê³É

b. ¸øStudent±íÔö¼ÓËùÔÚϵSdeptÁУ¬×Ö·ûÐÍ£¬³¤¶È2£¬²»ÔÊÐíΪ¿ÕÖµ¡£ ͬaÀí£¬Ö±½ÓÌí¼Ó£º