ÎÒµÄϵͳÊÇWIN2003
ÔÏÈ×°µÄÊÇmsssql 2000ʹÓÃĬÈÏʵÀý£¬×òÌì¼Ó×°ÁËmssql 2005²¢Ê¹ÓÃ×Ô¶¨ÒåµÄʵÀýÃû,
Ö®ºó·¢ÏÖÔÚASPÖпÉÒÔÁ¬ÉÏ2005£¬µ«ÔÀ´µÄmssql2000µÄADOÁ¬½Ó·û¶¼Ê§Ð§ÁË¡£²»ÖªµÀΪʲô£¿
ÄѵÀÓгåÍ»£¿»¹ÊǶ˿ÚÉèÖÃÎÊÌ⣿
ÅäÖÃÄãµÄaspÖÐADOµÄÁ¬½Ó×Ö·û´®£¬Èç¹ûʹÓÃADO.DBConnectionµÄ»° Ã²ËÆ»¹Ó¦¸ÃÈ¥× ......
ÓÐÒ»¸ö±í£ºT
ÓÐÈýÀý£ºA B C
ÎÒ¿ÉÒÔÓÃ
select A,B,C from T where A>0 »ñÈ¡Êý¾Ý¡£
µ«ÎÒÏëÓÃÕâÖÖ·½Ê½»ñÈ¡Êý¾Ý£¬
select A as A1,B,C from T where A1>0
Ìáʾ±¨´í¡£
Ò²¾ÍÊÇ£¬ÎÒÏëÓñêʶ·û"A1"´úÌæÁÐ"A"£¬È»ºóÔÚw ......
ѧÉú»ù±¾ÐÅÏ¢±ístudentÈçÏ£º
±àºÅ Äê¶È Äê¼¶ °à¼¶ ÐÕÃû ѧºÅ ³öÉúÄêÔÂ
1 2008 ³õÒ» 1°à AA 110 1995-4-3
2 2008 ³õÒ» 2°à BB 111 1995-4-3
3 2008 ³õÒ» 3°à CC 120 1995-4-3
4 2008 ³õ¶þ 1°à DD 121&n ......
string sql = "select count(ID) from Uerinfo where uername="+textBox1.Text;
string tablename = textBox1.Text;
string remoteDB = "UerMsg";
& ......
´ó¼ÒºÃ£¬ÎÒ×î½üά»¤Ò»¸öÏîÄ¿£¬100¶à¸ö±í
Ö»ÄÜÓÃjdbcÖ±Á¬
Óöµ½Á˶à¸ö±í ¹ØÁª ²éѯµÄÇé¿ö Çë´ó¼ÒÖ¸½Ì
±ÈÈç
student(studentid,classid)
class(classid,classname)
class_teacher(classid,teacherid)Õâ¸öÊÇÖмä±í
teacher(teacherid,homeid)
home(homeid,homeinfo)
¼ÙÈç ÏÖÔÚÓÐÒ»¸öѧÉú£¬ÏÖÔÚÒª²éѯËûËùÓÐÀÏʦµÄ home ......
select * from Client_Table where InputDate=dateadd(dd,-1,getdate()) È¡²»µ½ÈκÎÊý¾Ý
select * from Client_Table where datediff(dd,InputDate,getdate()) <=1 ͬÑùÈ¡²»µ½ÈκÎÊý¾Ý
SQL code:
select * from Client_Table where cast(InputDate as datetime)=getdate()-1
²»³ö´í£¬Ò²µÃ²»µ½ÈκÎÊý¾Ý
ÒýÓÃ ......