1.ASP读åACCESS代ç
ASP读åACCESS代ç
<2>æ¾ç¤ºæ°æ®åºè®°å½
åçï¼å°æ°æ®åºä¸çè®°å½ä¸ä¸æ¾ç¤ºå°å®¢æ·ç«¯æµè§å¨ï¼ä¾æ¬¡è¯»åºæ°æ®åºä¸çæ¯ä¸æ¡è®°å½
å¦ææ¯ä»å¤´å°å°¾ï¼ç¨å¾ªç¯å¹¶å¤ææéæ¯å¦å°æ« 使ç¨: not rs.eof
å¦ææ¯ä»å°¾å°å¤´ï¼ç¨å¾ªç¯å¹¶å¤ææéæ¯å¦å°å¼å§ 使ç¨ï¼not rs.bof
rs.open sqlstr,源码qq群骂人源码conn,1,3 ---->(表示æå¼æ°æ®åºçæ¹å¼)
rs.movefirst ---->(å°æé移å°ç¬¬ä¸æ¡è®°å½)
while not rs.eof ---->(å¤ææéæ¯å¦å°æ«å°¾)
response.write(rs("name")) ---->(æ¾ç¤ºæ°æ®è¡¨messageä¸çnameå段)
rs.movenext ---->(å°æé移å¨å°ä¸ä¸æ¡è®°å½)
wend ---->(循ç¯ç»æ)
<4>å é¤ä¸æ¡è®°å½
rs.open sqlstr,conn,1,3 ---->(表示æå¼æ°æ®åºçæ¹å¼)
-------------------------------------------------------
while not rs.eof
if rs.("name")=name then
rs.delete
rs.update æ¥è¯¢æ°æ®è¡¨ä¸çnameå段çå¼æ¯å¦çäºåénameçå¼"xx"ï¼å¦æ符åå°±æ§è¡å é¤ï¼
else å¦å继ç»æ¥è¯¢,ç´å°æéå°æ«å°¾ä¸ºæ¢
rs.movenext
emd if
wend