YOU canot specify target table ‘restated_notice_tbl’ for update in from clause

update restated_notice_tbl set restated_notice_tbl.restated='已回复' where restated_notice_tbl.issue=(select info_report_tbl.issue from info_report_tbl,restated_notice_tbl where info_report_tbl.issue=restated_notice_tbl.issue and info_report_tbl.report_type='0' and info_report_tbl.del_row='0' and info_report_tbl.title='nihaoma');

 

报YOU canot specify target table ‘restated_notice_tbl’ for update in from clause错误

,restated_notice_tbl去掉就好了,因为update的是restated_notice_tbl这张表。

你可能感兴趣的:(for update)