[Accessデータベースの2つのテーブルの同期] ACCESSの2つのテーブルの同期更新

  すべて展開

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

  rs.eofの場合

  response.write "同じNEWS.IDとARTICLE.idを持つデータを見つける方法はありません"

  そうしないと

  rs。( "news.content")= CONTENTの値

  rs。( "article.content")= CONTENTの値

  rs.update

  これが機能するかどうか覚えていない場合は、試すことができます。

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

  すべて展開

  変更時に2つのテーブルを同時に更新することを検討できます。

おすすめ

転載: www.cnblogs.com/sqlserver-mysql/p/12738385.html