MySQL 之 The definition of table 'p' prevents operation UPDATE on table 'post'.
客户的项目有个需求:根据帖子类别取每类帖子前10条作为加火帖。更新is_hot状态的时候遇到这个问题(hibernate持久层异常):could not execute native bulk manipulation querysql语句如下:UPDATE post SET is_hot = 1WHERE id IN ( SELECT p.id FROM ...
原创
2018-02-26 09:41:28 ·
5025 阅读 ·
1 评论