[access数据库两个表同步]对ACCESS数据库里的两张表进行同步更新

  展开全部

  rs.open"select * from news,article where news.id="&取值知&" and article.id="&取值&"“,conn,3,3

  if rs.eof then

  response.write"没有道找到NEWS.ID和ARTICLE.id相同的数据回"

  else

  rs.("news.content")=CONTENT的取值

  rs.("article.content")=CONTENT的取值

  rs.update

  不记得这样行不行,你可答以试试。

  conn.execute("update news,article set news.content="&content的取值&" and article.content="&content的取值&" news.id="&取值&" and article.id="&取值&"")

  展开全部

  可以考虑修改的时候,同时UPDATE两个表.

猜你喜欢

转载自www.cnblogs.com/sqlserver-mysql/p/12738385.html