asp读取和导入数据库access
- 提问者网友:雪舞兮
- 2021-05-10 08:49
- 五星知识达人网友:北方的南先生
- 2021-05-10 10:10
update db2 set newstit=(select title from SK_Article)
update db2 set newsbody=(select contentfrom SK_Article)
- 1楼网友:拾荒鲤
- 2021-05-10 13:30
update db2 set newstit=(select title from SK_Article)
update db2 set newsbody=(select contentfrom SK_Article)
绝对没错。
- 2楼网友:三千妖杀
- 2021-05-10 12:41
1,先做两个数据库连接:
<%
'db1数据库连接 set conna=server.CreateObject("adodb.connection") conna.open"driver={microsoft access driver (*.mdb)};dbq="&server.MapPath("db1.mdb") 'db2数据库连接 set connb=server.CreateObject("adodb.connection") connb.open"driver={microsoft access driver (*.mdb)};dbq="&server.MapPath("db2.mdb") %>
<%
set rs=server.createobject("adodb.recordset") str="select * from SK_Article" rs.open str,conn,1,1 if not (rs.eof and rs.bof) then do while not rs.eof
set rsb=server.createobject("adodb.recordset") sqlb="select * from News" rsb.open sqlb,connb,1,1
rsb.addnew
rsb("newstit")=rs("Title")
rsb("newsbody")=rs("content")
rsb.update rsb.close
rs.MoveNext loop end if rs.close set rs=nothing
%>
- 3楼网友:酒安江南
- 2021-05-10 11:17
- 4楼网友:青灯有味
- 2021-05-10 10:35
http://fif.hlw.cn/asp.html
看看asp+access的视频教程,讲解的很清楚 的