Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
更新クエリを 2 つのテーブルに送信する必要があります。
のフィールドの下にテーブル'title'を配置する必要があります。sub_menutitle
'title'
sub_menu
title
そして、のフィールドの下'id'にテーブルを配置する必要があります。root_subid
'id'
root_sub
id
どうすればこれを行うことができますか?
ありがとう
これは、次の例で実行できます。
http://richardjh.org/blog/update-multiple-mysql-tables-in-one-update-statement/
メインテーブルを更新し、行のIDを取得して、2回目の更新に使用します。