![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
文章平均质量分 64
asdfede
这个作者很懒,什么都没留下…
展开
-
You can't specify target table 'xxx' for update in FROM clause
Error Code: 1093. You can't specify target table 'xxx' for update in FROM clause. 意思大概是:MySql不支持在Update语句中引用被update对象。 原SQL如下: update sec_menu_item as m set m.code = ( select ...原创 2015-05-30 19:48:15 · 111 阅读 · 0 评论 -
MySQL使用单列索引和多列索引
摘自:http://greatwqs.iteye.com/blog/1897118 讨论MySQL选择索引时单列单列索引和多列索引使用,以及多列索引的最左前缀原则。 1. 单列索引 在性能优化过程中,选择在哪些列上创建索引是最重要的步骤之一。可以考虑使用索引的主要有两种类型的列:在Where子句中出现的列,在join子句中出现的列。请看下面这个查询: ...原创 2014-11-16 00:28:05 · 108 阅读 · 0 评论