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.
我有一个名为data1的表,有两列(Name, address),另一个表名为data2,有相同的列
(Name, address)
我的问题:如何将值作为“美国”分配给两个表address中列中的值name相等的列。
address
name
UPDATE data2 SET Address = 'USA' WHERE Name IN (SELECT Name FROM data1)