第三篇 You can't specify target table 'xxx' for update in FROM clause
一.问题描述:
调试过程中遇到报错 You can’t specify target table ‘t_form_ship’ for update in FROM clause。
百度后发现该现象出现在MySQL中,MSSQL和Oracle不会出现此问题。
实验后得到SQL sever也不会报错
二.解决方法——建立中间表
1.https://www.cnblogs.com/pcheng/p/4950383.html
2.通过视图来形成中间表
因为我的这张表本来就存在视图,所以我是采用将表改为视图的方法,原理其实一样