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Óï¾äÔõôд ±íµÄ½á¹¹ÊÇÒ»ÑùµÄ
ÀýÈç£ ......
ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......
protected void btnLogin_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection("Server = (local);user id = sa;pwd = 1;database = Login");
&nb ......
ÈçºÎÔÚSQL2005ÖÐÉ趨¶¨Ê±×÷Òµ£¬±ÈÈç˵¶¨Ê±ÇåÀíijЩ±íµÄÊý¾Ý£¬
»òÕßÊǶ¨Ê±µÄ½«Ä³Ð©±íµÄÊý¾Ýµ¼³öexcel£¡
ÔÚÏߵȴý£¬¼±¼±¼±£¬×îºÃÊÇÏêϸ²½Ö裡
֮ǰÎÒ×öµÄ×÷ÒµÓеãÎÊÌ⣡
°ïUP
²Î¿¼:http://hi.baidu.com/toiota ......
1¡£ÔõÑùʹxp_cmdshellÄÜÍêÕûÊä³ö³¬¹ý255¸ö×Ö·ûµÄ×Ö·û´®¡£
2¡£select ʱ£¬¼ìË÷ËÙ¶ÈÊÇÓëfromºóµÄ TABLE˳ÐòÓйأ¬»¹ÊÇÓëwhereÌõ¼þµÄ˳ÐòÓйØ(TABLEÊý¾Ý¶àÉÙ )
ÔÚϵͳÊôÐÔÉ趨ÀïÓиöÑ¡Ïî,¿ÉÒÔÐ޸ĵ¥×Ö¶ÎÊä³ö×ÖÊýÏÞÖÆ. ......