最近接触mysql。加上有段时间没敲代码,感觉没印象了。今天按要求要处理些数据。遇到这个错误:You can't specify target table 'characters ' for update in FROM clause。虽然我也问了度娘,很多同通道中人也遇到过。大概解决办法就是创建零时表,反正就是子语句不能是同一张表。我的mysql是5.5版的。大家都说等他升级。猴年马月。。下面是我写的sql。语句的意思你懂的。希望好心人能帮帮我这个小菜鸟。先谢谢啦。update ecs_goods_attr set attr_value='白色系' where (goods_id in (select b.goods_id from ecs_goods_attr as b where b.attr_value like '%Egret%'and b.attr_id=212) ) and attr_id=245
MySQL
MySQL
解决方案 »
- mysql+discuzx2.5需要多少内存?
- 数据库备份策略!
- MYSQL中文乱码,老问题!
- 问题有解决方法吗?Unable to connect to any of the specified MySQL hosts MySQ
- 快来抢购印有MySQL、PostgreSQL、Java、Linux的Logo的文件衫!
- 我从文本文件导入数据到MYSQL表,为什么记录的中文的内容都变成了####,而英文和数字正常。
- 数据统计问题
- 熟悉C++调用mysql存储过程的看过来!
- 数据库设计与函数、存储过程的使用。
- 系统 重装后 MYSQL 数据库 还原
- 菜鸟急求遍历数据库问题
- 数据库 查询的一个异常奇怪的问题
on a.goods_id=b.goods_id
set attr_value='白色系'
where attr_id=245
on a.goods_id=b.goods_id
set attr_value='白色系'
where attr_id=245