Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

aspÖеÄrs.openÓÚconn.executeµÄÇø±ð

aspÖеÄrs.openÓÚconn.executeµÄÇø±ð
    rs.open sql,conn£ºÈç¹ûsqlÊÇdelete,update,insertÔò»á·µ»ØÒ»¸ö¹Ø±ÕµÄ¼Ç¼¼¯£¬ÔÚʹÓùý³ÌÖв»ÒªÀ´¸örs.closeÔÚÎļþ×îºóÔÙдrs.close
    Öмä¿ÉÒÔÀ´¶à¸ö¼Ç¼¼¯rs1.open sql1,conn£¬×îºóÒ»¿é¹Ø±Õ¼Ç¼¼¯:rs.close rs1.close
    conn.execute(sql) Èç¹ûsqlÊÇdelete,update,insertÔò»á·µ»ØÒ»¸ö¹Ø±ÕµÄ¼Ç¼¼¯£¬ÔÚʹÓùý³ÌÖв»ÒªÀ´¸örs.closeÔÚÎļþ×îºóÔÙдrs.close
    Öмä¿ÉÒÔÀ´¶à¸ö¼Ç¼¼¯rs1.open sql1,conn£¬×îºóÒ»¿é¹Ø±Õ¼Ç¼¼¯:rs.close rs1.close.
    Èç¹ûsqlÊÇupdate,insert,deleteÔòÓ¦¸ÃʹÓÃconn.execute(sql)Ò²¿ÉÒÔ²»ÒªÀ¨ºÅconn.execute sql
    Èç¹ûsqlÊÇselectÓï¾äÔòÓ¦¸ÃʹÓÃset rs=conn.execute(sql)À¨ºÅÒ»¶¨Òª£¬²»ÄÜÊ¡ÂÔ:ÕâÊÇÒòΪvbscriptµÄÌØÐÔ,´ø·µ»ØÖµ
    µÄµ÷ÓñØÐë¼ÓÀ¨ºÅ£¬²»´ø·µ»ØÖµµÄµ÷ÓÿÉÒÔ²»ÒªÀ¨ºÅ¡£
    ×¢Ò⣺²»¹ÜÊÇrs.open sql,conn»¹ÊÇconn.execute(sql) [ÕâÀïµÄSQLÊÇdelete,update,insert]Ö´ÐÐÒԺ󶼻᷵»ØÒ»¸ö¹Ø±ÕµÄ¼Ç¼¼¯
    Ò²¾ÍÊÇ˵Èç¹ûsqlÊDzåÈ룬¸üУ¬É¾³ýÓï¾ä,ÄÇôset rs=conn.execute(sql)ÖеÄRS¾ÍûʲôÒâÒå¡£
1.conn.execute
sql="select * from admin where username='xiaozhu'"
set rs=conn.execute(sql)
Ö´ÐÐÍêÒÔºó×Ô¶¯¹Ø±Õ¼Ç¼¼¯
×îºóÖ»ÐèÒª¹Ø±ÕÁ¬½Ó¾Í¿ÉÒÔÁË
conn.close
set conn=nothing
2.rs.open
set rs=server.createobject("adodb.recordset")
sql="select * from admin where username='xiaozhu'"
rs.open sql,conn,1,1
¿ÉÒÔ×Ô¼ºÉ趨һЩ²ÎÊý£¬¼´Ëø¶¨ºÍÓαêµÄÒƶ¯·½Ê½
×îºóÒª¹Ø±Õ¼Ç¼¼¯ºÍÁ¬½Ó
rs.close
set rs=nothing
conn.close
set conn=nothing
3.command.execute
sql="select * from admin where username='xiaozhu'"
set rs=command.execute(sql)
*****************************************************************************
1.
set rs=conn.execute("Èç¹ûÊÇselectÓï¾ä") µÃµ½µÄrs.recordcount=-1
rs.open sql,conn("sqlΪselectÓï¾ä") µÃµ½µÄrs.recordcountΪÕý³£µÄ¼Ç¼Êý
2.
rs.openÊÇ´ò¿ªÊý¾Ý¿â conn.execute ÊÇÖ´ÐÐSQLÖ¸Áî
set rs=conn.execute(insert,update,delete)·µ»ØÒ»¸ö¹Ø±ÕÁ˵ļǼ¼¯
set rs=conn.execute(select)·µ»ØÒ»¸öûÓйرյļǼ¼¯
3.
CONN


Ïà¹ØÎĵµ£º

·ç¶É¿Æ¼¼ASPÍøÉϹºÎïϵͳ

Èí¼þÃû³Æ£º·ç¶É¿Æ¼¼ASPÍøÉϹºÎïϵͳ  v0912-26
 
Èí¼þ´óС£º7069k
 
ÔËÐл·¾³£ºASP/Access
 
Èí¼þÀà±ð£ºµç×ÓÉÌÎñ
 
Èí¼þÊÚȨ£ºÃâ·Ñ
 
¿ª·¢É̼Ò: ·ç¶É¿Æ¼¼
 
¹Ù·½ÍøÕ¾£ºhttp://www.chinammc.com
 
ÑÝʾµØÖ·£ºhttp://demo01.chinammc.com
 
ÏÂÔصØÖ·: http://w ......

c# ÑéÖ¤Âë×é¼þ ¿Évb£¬asp£¬netµ÷ÓÃ

      ½ñÌ칫˾ҪÇóÓÃC#д¸öÑéÖ¤Âë×é¼þ£¬ÈÃasp¿ÉÒÔµ÷Óã¬ÔÚÍøÉÏÕÒÁËÒ»¶Ñ×ÊÁÏ£¬ÖÕÓÚ¸øÎÒ¸ø¸ã³öÀ´ÁË£¬ÒòΪ±¾È˵ÚÒ»´Îд×é¼þ£¬Ò²ÊǵÚÒ»´Î·¢±íÎÄÕ£¬ËùÓпÉÄÜ˵µÄ²»ÊǺܺ㬴ó¼ÒÇë¼ûÁ¡£
      csdnÉÏÓÐÕâôƪÎÄÕ£¬Ïëѧϰд×é¼þµÄ¿ÉÒÔÈ¥¿´¿´£ºhttp://blog.csdn.net/KimmKi ......

ASP¡£NETÒ³Ãæ´«ÖµÖеÄÂÒÂëÎÊÌâ

ÔÚ±à³Ì¹ý³ÌÖУ¬¾­³£ÐèÒªÒ³ÃæÖ®¼äµÄ´«Öµ£»ÌرðÊÇÖÐÎÄ´«µÝµÄʱºò£¬¾­³£³öÏÖÂÒÂëÏÖÏ󣬺ÜÊÇÓôÃÆ¡£ÏÂÃæÊÇÎÒÔÚÍøÉÏÕÒµ½µÄһЩ·½·¨£¬¹©´ó¼Ò²Î¿¼¡£
1.ÉèÖÃweb.configÎļþ¡££¨Ã»ÓÐÓùý£©
<system.web>
......
<globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2 ......

aspÖ®fso²Ù×÷´óÈ«

Õª×Ô£ºhttp://zxlh168.blog.163.com/blog/static/7778614020098168638654/
<%
’FSO×é¼þÃû³Æ
dim FSObject
FSObject="Scripting.FileSystemObject"
’=========================================================
’¡ôÊÇ·ñÖ§³Ö×é¼þ
’=============================================== ......

PHP±ÈASPÓÅÐãµÄÆ߸öÀíÓÉ ÄÏÈý·½

ASPÊÇ΢Èí¹«Ë¾ÊµÏÖ¶¯Ì¬ÍøÒ³µÄÒ»ÖÖ¼¼Êõ¡£
ASPÖ§³ÖһЩ½Å±¾ÓïÑÔ£¬Ö÷ÒªÒÔVBScriptΪÖ÷¡£
ÓëASPÏà±È½Ï£¬Ä㻹¿ÉÒÔÑ¡ÔñÁíÒ»Öпª·ÅÔ´´úÂë±à³ÌÓïÑÔ——PHP£¬PHP¿ÉÒÔÔËÐÐÔÚ¶àÖÖ²Ù×÷ϵͳÏ£¬ÆäÖаüÀ¨LinuxºÍwindows¡£
ËäÈ»ASPÊÇÒ»ÖÖ²»´íµÄ¼¼Êõ£¬µ«´Ó³¤Ô¶¿¼ÂÇÎÒÏàÐÅPHPÔÚ½«À´µÄ¼¼ÊõÁìÓòÀï»áÓв»·²µÄ±íÏÖ¡£
ÎÒÈÏΪÓÐÆ߸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ