美文网首页
You can’t specify target table f

You can’t specify target table f

作者: 赛亚人之神 | 来源:发表于2017-10-25 09:29 被阅读0次

不能查询一个表然后再修改这个表,在内层查询中嵌套一个查询,认为是查询中间表

update product  set company = 'TG' WHERE id in ( SELECT cc.id from (SELECT tt.id from product tt WHERE tt.product_no like 'TG%') cc);

相关文章

网友评论

      本文标题:You can’t specify target table f

      本文链接:https://www.haomeiwen.com/subject/sagfpxtx.html