Çë½ÌÌõSQLÓï¾ä - .NET¼¼Êõ / ASP.NET
gg_student_registration£¨Ñ§Éú×¢²áµÇ¼Ç£©
ÐòºÅ ÁÐÃû Êý¾ÝÀàÐÍ ³¤¶È СÊýλ ±êʶ Ö÷¼ü ÔÊÐí¿Õ ĬÈÏÖµ ˵Ã÷
1 regid uniqueidentifier 16 0 ÊÇ ·ñ (newid()) µÇ¼ÇID
2 semesterid uniqueidentifier 16 0 ·ñ ѧÆÚID
3 schid uniqueidentifier 16 0 ·ñ ѧУID
4 stuid uniqueidentifier 16 0 ·ñ ѧÉúID
5 registerdate datetime 8 3 ÊÇ µÇ¼Çʱ¼ä
6 registersign char 1 0 ·ñ µÇ¼Ç±ê¼Ç
7 unregistertype char 2 0 ÊÇ µÇ¼ÇÀàÐÍ
8 unregisterreason varchar 80 0 ÊÇ µÇ¼ÇÀíÓÉ
9 isupdate bit 1 0 ·ñ 1 ÊÇ·ñÐÞ¸Ä
10 isdeleted char 1 0 ·ñ ('0') ÊÇ·ñɾ³ý
gg_student (ѧÉú)
ÐòºÅ ÁÐÃû Êý¾ÝÀàÐÍ ³¤¶È СÊýλ ±êʶ Ö÷¼ü ÔÊÐí¿Õ ĬÈÏÖµ ˵Ã÷
1 stuid uniqueidentifier 16 0 ÊÇ ·ñ (newid()) ѧÉúID
2 schid uniqueidentifier 16 0 ·ñ ѧУºÅ
3 classid uniqueidentifier 16 0 ÊÇ °à¼¶ID
4 stuname varchar 30 0 ·ñ ѧÉúÐÕÃû
5 oldname varchar 30 0 ÊÇ ÔøÓÃÃû
6 stucode varchar 20 0 ÊÇ Ñ§ºÅ
select * from gg_student_registration where semesterid='" + value + "' and stuid in (select stuid from gg_student where classid='" + value+ "' and isdeleted='0' )
¸ÃÓï¾äÒѾµÃµ½Ñ§Éú×¢²áµÇ¼ÇÀïµÄÕâ¸ö°à¼¶µÄËùÓÐѧÉú
ÏÖÔÚÎÒÏë»ñ gg_student_registration¼ÓÉÏËû¶ÔÓ¦µÄѧÉúÐÅÏ¢gg_student
inner join
C# code:
select a.*,b.st
Ïà¹ØÎÊ´ð£º
Ö´ÐеÄ˳Ðò£º
1£©Îļþä¯ÀÀ¿ò£¨Ñ¡ÔñÎļþʹÓã©
Ñ¡ÔñºÃÎļþºó
µã»÷Ò»¸öµ¼Èë°´Å¥µÄʱºò £¬°ÑÉÏÃæÉÏ´«¿òÀïµÄcsvÎļþÒÔÒ»¸öIDΪÎļþÃû£¬ÉÏ´«µ½**/**Îļþ¼ÐÏÂ
2£©¶ÁÈ¡Õâ¸öÎļþ¼ÐϵÄcsvµÄÎļþ£¬×ª»»³Ésql
3 ......
ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......
tab1 ×Ö¶Î:billdate,goodsid,incount,inmoney,outcount,outmoney,endprice,endcount,endamt
tab2 ×Ö¶Î:goodsid,goodskind£¨ÉÌÆ·ÀàÐÍ£©
tab3 ×Ö¶Î:goodskind£¨ÉÌÆ·ÀàÐÍ£©,kindname
½á¹û£º
µÃµ½ÉÌÆ·ÀàÐÍÔÚÒ»¶Îʱ¼ä ......
ÎÒÓÐÁ½¸ödropdownlist¶¼°óºÃÁËÖµ£¬ÏëÑ¡ÖÐÒ»¸ödropdownlistÖеÄÖµ£¬È»ºóÔÚÁíÒ»¸ödropdownlistÖÐÑ¡ÖÐÏàÓ¦µÄÒ»Ïî¡£
²»ÊÇ´Óа󶨵ڶþ¸ödropdownlist£¬ÊÇÔÚÒѾ°óºÃµÄÖµµ±ÖÐÑ¡ÖÐÒ»¸ö¡£
ÎÒÏëÓÃjsд
ÇóÖú
Äã¿ÉÒÔ°Ñdrop ......
´úÂëÈçÏ Çë¸ßÊÖ Ö¸µãÏ лл
ajax_http.js
-------------
function getXMLHTTP() {
var xmlhttp;
if (window.ActiveXObject) {
//IE
try {
......