ERROR 1176 (42000): Key 'XXX' doesn't exist in table 'XXX'报错处理

MySQL5.7对sql语句强制使用索引查询时报错如下:

解决:这里的id字段是表的主键,查看别人的经验贴得知是语法错误,参考链接https://stackoverflow.com/questions/19205004/key-emp-no-doesnt-exist-in-table-employees ,当强制索引是主键时sql语句应这样写

mysql> SELECT COUNT(UA.id) AS tp_count FROM  ck_user_audit UA RIGHT JOIN ck_user AS U force index(PRIMARY) ON U.id = UA.uid LIMIT 1;

ERROR 1176 (42000): Key 'XXX' doesn't exist in table 'XXX'报错处理

原文地址:https://www.cnblogs.com/godfather007/p/10444049.html

时间: 2024-08-29 07:52:36

ERROR 1176 (42000): Key 'XXX' doesn't exist in table 'XXX'报错处理的相关文章

Error creating bean with name 'security.filter.filterInvocation' defined in URL 报错

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'security.filter.filterInvocatio

create table xxx as select 与 create table xxx like

create table xxx as select xxx,创建新表,没有原表的完整约束,会把原表的数据拷贝一份,如下:mysql> desc stu;+------------+--------------+------+-----+---------+----------------+| Field      | Type         | Null | Key | Default | Extra          |+------------+--------------+------

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type"))报错解决方式

安装R包时产生如下错误: Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : 无法打开链结 此外: Warning messages: 1: In download.file(url, destfile, method, mode = "wb", ...) : downloaded length 409600 != repor

编译android4.4 报错error: call to '__property_get_too_small_error' declared with attribute 的处理 (转载)

转自:http://blog.csdn.net/syhost/article/details/14448899 完整的报错为: system/core/include/cutils/properties.h:64:39: error: call to '__property_get_too_small_error' declared with attribute error: property_get() called with too small of a bufferIn function

MySQL报错:ERROR 2013 (HY000): Lost connection to MySQL server during query

首先贴上实验用各版本: OS:CentOS 6.5 MySQL: mysql> select version ();+------------+| version () |+------------+| 5.6.22     |+------------+1 row in set (0.00 sec) 事情是这样的:本来是要在虚机上搭建一个wordpress做实验,刚创建完数据库,就在赋权额时候发生不在计划的错误: mysql>grant all on wordpress.* to [emai

运行yum报错:Error: Cannot retrieve metalink for repository: epel. Please verify its path

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 当我们安装第三方扩展源后,yum的时候就会出现:Error: Cannot retrieve metalink for repository: epel. Please verify its path报错信息. 然后修改编辑/etc/yum.repos.d/epel.repo把镜像地址注释去掉, 然后把里面的 #ba

安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决

安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决 安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决

ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes

今天在MySQL 5.6版本的数据库中修改InnoDB表字段长度时遇到了"ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes"错误,第一次遇到这个错误,遂花了点学习.研究过.总结这个问题. 我们先来创建一个测试表,构造这样的错误. mysql> use MyDB; Reading table information for completion of table and colum

MySQL 拷贝数据库表方式备份,还原后提示 table xxx '' doesn`t exist

MySQL很强大,支持直接拷贝数据库文件快速备份,那数据库文件在哪里呢? 打开MySQL的配置文件 my.ini,找到 datadir 节点,如 datadir="D:/Program Files/MySQL/MySQL Server 5.1/data" 进入上述文件夹,就可以看到MySQL中新建的数据库文件夹了,每个文件夹以数据库名命名的,你想备份哪个数据库,把这个文件夹拷贝走即可.到时还原数据库,把它拷贝到data目录下即可,就这么简单! 但是,今天在一台MySQL服务器上拷贝备份