The target table tablename of the UPDATE is not updatable---解决
今天碰见这个问题,看网上的答案啊,真的是。。
写一个测试简单说一下。
mysql–报错是这个The target table t2wkk of the UPDATE is not updatable
因为我写的是要更新a,但是我后面的set写成了给b赋值,所以不对,正确的应该是
update t1wkk as a join (select id,`name`,money FROM t2wkk) as b
on a.id = b.id set a.money = b.money;
正确的链接: mysql里一次更新多条数据详细用法.
The target table tablename of the UPDATE is not updatable---解决相关推荐
- MySQL 中 You can‘t specify target table ‘表名‘ for update in FROM clause解决办法
废话懒得说了 将SELECT出的结果再通过中间表SELECT一遍,这样就规避了错误. update truth_jt set fee='1' where id in (SELECT j.id from ...
- MYSQL修改报错 You can‘t specify target table ‘表名‘ for update in FROM clause
MYSQL You can't specify target table '表名' for update in FROM clause 解决办法 原始SQL 这是我一开始使用的语句. // An hi ...
- 【mysql 】sql删除重复记录 You can't specify target table '表名' for update in FROM clause
用下面的语句就报语法出错: delete from tab_record where recordid not in (select min(c.recordid) as recordid from ...
- 数据库工作笔记018---MySQL 中 You can't specify target table '表名' for update in FROM clause错误解决办法
技术交流QQ群[JAVA,C++,Python,.NET,BigData,AI]:170933152 1.在MySQL中,写SQL语句的时候 ,可能会遇到You can't specify targe ...
- Mysql You can‘t specify target table ‘表名‘ for update in FROM clause错误解决方案
Mysql You can't specify target table '表名' for update in FROM clause错误解决方案 测试表结构及测试数据 1. 更新 code 开始以 ...
- You can't specify target table '表名' for update……
2019独角兽企业重金招聘Python工程师标准>>> 建表sql DROP TABLE IF EXISTS `car`; CREATE TABLE `car` (`id` int( ...
- You can't specify target table 'tablename' for update in FROM clause的解决方法
在执行下面的sql时报错 DELETE FROM temp WHERE id IN (SELECT a.id FROM t_user t JOIN temp a ON t.email = a.emai ...
- Mysql:You can't specify target table for update in FROM clause的解决办法
You can't specify target table '表名' for update in FROM clause 意思是 不能先select出同一表中的某些值,再update这个表 原SQL ...
- mysql报错 specify target table
1: mysql 不能更新查询本身的表 You can't specify target table '表名' for update in FROM clause 翻译 不能先select出同一表中的 ...
最新文章
- 动态导入ECMAScript模块一文看懂
- qt开发环境 - c++之结构,联合,枚举
- [react] 你最不喜欢React的哪一个特性(说一个就好)?
- Python二级笔记(7)
- Android SurfaceView实现静态于动态画图效果
- jacascript 立即执行函数(IIFE)与闭包
- Ubuntu编译内核及grub的一些笔记
- mysql单张表数据量极限_极限数据量范围的安全测试
- jmeter处理带表单的接口请求
- 外包如何安排人手-b
- matlab导入arcgis中国边界图,【干货】ArcGIS提取影像边界的几种方法
- 中国车牌数据集以及车牌识别代码
- csSEnet注意力网络
- 有哪些电影一定要趁年轻看? - 风之影的回答 - 知乎
- phpExcel中文帮助手册
- 马克飞象的markdown语法和其它markdown语法的区别
- 文件上传利器SWFUpload使用指南(转)
- 用matlab画出时域波形,用Matlab画出信号的时域波形与频谱,观察它们的关系。.ppt...
- 【状语从句练习题】because / because of / although / in spite of
- Qt 制作安装程序(使用 binarycreator.exe)