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.
此查询不适用于 5.1 版的 MySQL,但在最新版本的 MySQL (5.5) 上可以使用。
Update furni T1 Set T1.user_id = (SELECT T2.user_id FROM furni_items T2 where T2.item_id = T1.id) ;
我收到此错误 = '0 行受影响'
如何使查询在 MySQL 5.1 上工作?
与加入一起使用。
Update furni T1 INNER JOIN furni_items T2 ON T2.item_id = T1.id Set T1.user_id = T2.user_id