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 つの列を持つdata1という名前のテーブルと、同じ列を持つdata2(Name, address)という名前の別のテーブルがあります。
(Name, address)
address私の質問:列の値nameが両方のテーブルで等しい列に値を「USA」として割り当てる方法。
address
name
UPDATE data2 SET Address = 'USA' WHERE Name IN (SELECT Name FROM data1)