sql ÎÊÌâ - MS-SQL Server / »ù´¡Àà
ÐèÇóÈçÏ£º
ѧԺ academy£¨aid,aname£©
°à¼¶ class£¨cid,cname,aid£©
ѧÉú stu(sid,sname,aid,cid)
סËÞÇø region(rid,rname)
ËÞÉáÂ¥ build(bid,rid,bnote) bnoteÊÇ¡®ÄС¯/¡®Å®¡¯
ËÞÉá dorm(did,rid,bid£¬bednum) bednum ÿ¸öËÞÉáÒ»¹²µÄ´²Î»Êý
ÏÖÔÚÒÔÉÏÁùÕÅ±í¶¼ÒѾºÃÁË£¬ÏëÒÔѧԺ°à¼¶Îªµ¥Î»ÊµÏÖÈëסµÄ¹ý³Ì£¬Éú³É±ístuindorm.
˳ÐòÉú³É ÏȲ»Óÿ¼ÂǺܶàÒòËØ°É ÄÐÅ®·Ö¿ª¼´¿É ¾ÍÊÇAѧԺA1°à¼¶Ñ§ÉúÈëסµ½KÇøK1´±101-205µÄÈýºÅ´²Î»(¼ÙÉèÒ»¹²ËÄÕÅ´²Î» Õâ¸öÊDZäµÄ) ÔòAѧԺA2°à¼¶Ñ§Éú½Ó×ÅÈëסÏÂÈ¥ÕâÑù
Ò»¸öѧԺ¶à¸ö°à¼¶¶à¸öѧÉú
Ò»¸öסËÞÇø¶à¸öËÞÉáÂ¥¶à¸öËÞÉá Õâ¸ö½¨±íµÄʱºò¿ÉÄܲ»Ôõô׼ȷ
ËÞÉáÂ¥£ºKÇøK1Â¥£¬K2Â¥¡£¡£¡£
ËÞÉ᣺101-110 201-210..601-610
лл´ó¼ÒÁË- -
stuindorm(sid,rid,bid,did)
ѧÉúÈëס±í(ѧÉú±àºÅ£¬×¡ËÞÇø£¬Â¥ºÅ£¬ËÞÉáºÅ)
СF ÄãÖÕÓÚ³öÀ´ÁË¡£¡£ÄÚÅ£¡£¡£
Ïà¹ØÎÊ´ð£º
ÎÒÓжà¸ö±íA B C ½á¹¹ÊÇÒ»ÑùµÄ£¬¶¼ÓÐ2¸ö×Ö¶ÎnameºÍcontent,ÎÒÒªËÑË÷ËùÒÔ±íËùÓÐ×Ö¶ÎÖаüº¬¡°Öйú¡±µÄÄÚÈÝ Õâ¸öSQLÓï¾äÔõôд
ÈçºÎ½«¶à¸ö±íµÄ²éѯ½á¹ûÁ¬³ÉÒ»¸ö±í Õâ¸öSQLÓï¾äÔõôд ±íµÄ½á¹¹ÊÇÒ»ÑùµÄ
ÀýÈç£ ......
ÎÒÒ»¸öÏîÄ¿£¬Óиö²åÈë²Ù×÷£¬¾ßÌåÊÇÕâÑùµÄ£º
ÎÒÓнø»õÐÅÏ¢±í¡£ÔÚ³ö»õʱѡÔñÏàÓ¦µÄ½ø»õÐÅÏ¢£¬ÊäÈëÊýÁ¿£¬Ñ¡Ôñ²¿Ãź󣬵㱣´æ°´Å¥£¬ÓÉÓÚÍøÂçÑÓʱ£¬µãÒ»ÏÂûÓз´Ó³£¬ÓÚÊÇÓû§¾ÍÓÖµãһϣ¬µ¼ÖÂÒ»´Î²åÈëÁËÁ½Ìõ¼Ç¼:
Àý£º
......
½ñÌì×öÁËÒ»¸ö´æ´¢¹ý³Ì »·¾³ÊÇSQL2000Êý¾Ý¿â
´óÖÂÈçÏÂ
½¨Á¢ÁÙʱ±í
¶¨ÒåÔ±¹¤Óαê
Ñ»·Ô±¹¤£¨ÊôÓÚ1¸ö¹«Ë¾)
......
protected void btnLogin_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection("Server = (local);user id = sa;pwd = 1;database = Login");
&nb ......
id url rank ......