[Synchronization of two tables in access database] Synchronous update of two tables in ACCESS database

  Expand All

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

  if rs.eof then

  response.write "No way to find the data with the same NEWS.ID and ARTICLE.id"

  else

  rs. ("news.content") = The value of CONTENT

  rs. ("article.content") = The value of CONTENT

  rs.update

  Don't remember if this works, you can try it.

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

  Expand All

  You can consider updating two tables at the same time when modifying.

Guess you like

Origin www.cnblogs.com/sqlserver-mysql/p/12738385.html