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.
Access 2007 で 2 つのテーブルを操作していますが、以下のクエリではレコードがゼロになります。クライアント ID をトランザクション テーブルにコピーしたいと思います。
INSERT INTO Transactions (NAME_ID) SELECT ID FROM Clients WHERE not exist (select * from Transactions where Transactions.Name=Clients.Name);
前もってありがとう、バリー
INSERT ではなく UPDATE クエリが必要です
UPDATE clients INNER JOIN transactions ON clients.Name = transactions.Name SET transactions.Name_ID = [clients].[ID];
UPDATE の後の部分は、テーブル間の結合を定義します SET の後の部分は、更新する項目を定義します
隠しオーバーフローあり