重複の可能性:
結合を使用した SQL 更新クエリ
表 1 には 2 つの列があります。
ID列があります
日時列があります
表 2:
ID列があります
日時列があります
のテーブル 1 とテーブル 2 の間の JOIN に基づいてdatetime
列を更新する必要があります。table 2
ID
例:
If table1.id = table2.id,
update datetime column on table2
with the datetime column value of table1.
これは理にかなっていますか?
どうすればこれを行うことができますか?