我的编程空间,编程开发者的网络收藏夹
学习永远不晚

MySQL Error number: MY-013523; Symbol: ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK; SQLSTATE: HY0

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

MySQL Error number: MY-013523; Symbol: ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK; SQLSTATE: HY0

文档解释

Error number: MY-013523; Symbol: ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK; SQLSTATE: HY000

Message: Table name ‘%s.%s’ containing upper case characters, used by foreign key ‘%s’ in table ‘%s.%s’, is not allowed with lower_case_table_names = 1.

错误说明

ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK是MySQL中的一个错误,当创建外键时,在大写格式下写入表名或数据库名时会发生此错误。普通用户会收到会发现MySQL无法执行SQL语句,并显示错误信息以下:

Error code: MY-013523

Symbol: ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK

SQLSTATE: HY000

Message: Table name in uppercase is not allowed for foreign key in clause ‘%s’

常见案例

ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK的错误最常见的情况是用户使用SQL语句来创建和添加MySQL数据库中的外键时出现的。它会发生在当使用大写的单词建立表名或数据库名时发生的。

例如:

CREATE TABLE EMP (

id INT NOT NULL,

EMP_ID INT NOT NULL,

FOREIGN KEY(EMPID) REFERENCES EMPLOYEE(EMPID)

);

在这个例子中,表EMPLOYEE有一个大写的表名“EMPLOYEE”,而外键需要小写格式,将会抛出ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK错误即MY-013523。

解决方法

最简单的解决方法就是确保表名书写正确:使用小写格式的表名来创建外键。此外,也可以使用表和数据库的名称缩写。

例如:

CREATE TABLE EMP (

id INT NOT NULL,

EMP_ID INT NOT NULL,

FOREIGN KEY(EMPID) REFERENCES Employee(EMPID)

);

上述例子中,我们将表“Employee”改为“Employee”,使用小写格式,外键仍然可以正确创建。

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

MySQL Error number: MY-013523; Symbol: ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK; SQLSTATE: HY0

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

MySQL Error number: MY-013523; Symbol: ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK; SQLSTATE: HY0

文档解释Error number: MY-013523; Symbol: ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK; SQLSTATE: HY000Message: Table name
MySQL Error number: MY-013523; Symbol: ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011682; Symbol: ER_GRP_RPL_SLAVE_PRESERVE_COMMIT_ORDER_NOT_SET; SQLSTATE: HY0

文档解释Error number: MY-011682; Symbol: ER_GRP_RPL_SLAVE_PRESERVE_COMMIT_ORDER_NOT_SET; SQLSTATE: HY000Message: Group
MySQL Error number: MY-011682; Symbol: ER_GRP_RPL_SLAVE_PRESERVE_COMMIT_ORDER_NOT_SET; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011692; Symbol: ER_GRP_RPL_SUPPORTS_ONLY_ONE_FORCE_MEMBERS_SET; SQLSTATE: HY0

文档解释Error number: MY-011692; Symbol: ER_GRP_RPL_SUPPORTS_ONLY_ONE_FORCE_MEMBERS_SET; SQLSTATE: HY000Message: There is
MySQL Error number: MY-011692; Symbol: ER_GRP_RPL_SUPPORTS_ONLY_ONE_FORCE_MEMBERS_SET; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013240; Symbol: ER_SHARED_TABLESPACE_USED_BY_PARTITIONED_TABLE; SQLSTATE: HY0

文档解释Error number: MY-013240; Symbol: ER_SHARED_TABLESPACE_USED_BY_PARTITIONED_TABLE; SQLSTATE: HY000Message:
MySQL Error number: MY-013240; Symbol: ER_SHARED_TABLESPACE_USED_BY_PARTITIONED_TABLE; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011411; Symbol: ER_KEYRING_ENCRYPTED_FILE_PASSWORD_IS_TOO_LONG; SQLSTATE: HY0

文档解释Error number: MY-011411; Symbol: ER_KEYRING_ENCRYPTED_FILE_PASSWORD_IS_TOO_LONG; SQLSTATE: HY000Message: Too long
MySQL Error number: MY-011411; Symbol: ER_KEYRING_ENCRYPTED_FILE_PASSWORD_IS_TOO_LONG; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011599; Symbol: ER_GRP_RPL_CANNOT_EXECUTE_TRANS_WHILE_STOPPING; SQLSTATE: HY0

文档解释Error number: MY-011599; Symbol: ER_GRP_RPL_CANNOT_EXECUTE_TRANS_WHILE_STOPPING; SQLSTATE: HY000Message:
MySQL Error number: MY-011599; Symbol: ER_GRP_RPL_CANNOT_EXECUTE_TRANS_WHILE_STOPPING; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011247; Symbol: ER_SHA_PWD_FAILED_TO_GENERATE_MULTI_ROUND_HASH; SQLSTATE: HY0

文档解释Error number: MY-011247; Symbol: ER_SHA_PWD_FAILED_TO_GENERATE_MULTI_ROUND_HASH; SQLSTATE: HY000Message: Error in
MySQL Error number: MY-011247; Symbol: ER_SHA_PWD_FAILED_TO_GENERATE_MULTI_ROUND_HASH; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011704; Symbol: ER_GRP_RPL_SQL_SERVICE_FAILED_TO_RUN_SQL_QUERY; SQLSTATE: HY0

文档解释Error number: MY-011704; Symbol: ER_GRP_RPL_SQL_SERVICE_FAILED_TO_RUN_SQL_QUERY; SQLSTATE: HY000Message: Error
MySQL Error number: MY-011704; Symbol: ER_GRP_RPL_SQL_SERVICE_FAILED_TO_RUN_SQL_QUERY; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-010419; Symbol: ER_RPL_ERROR_CHANGING_RELAY_LOG_INFO_REPO_TYPE; SQLSTATE: HY0

文档解释Error number: MY-010419; Symbol: ER_RPL_ERROR_CHANGING_RELAY_LOG_INFO_REPO_TYPE; SQLSTATE: HY000Message: Error
MySQL Error number: MY-010419; Symbol: ER_RPL_ERROR_CHANGING_RELAY_LOG_INFO_REPO_TYPE; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011358; Symbol: ER_KEYRING_CHECK_KEY_FAILED_DUE_TO_INVALID_KEY; SQLSTATE: HY0

文档解释Error number: MY-011358; Symbol: ER_KEYRING_CHECK_KEY_FAILED_DUE_TO_INVALID_KEY; SQLSTATE: HY000Message: Error
MySQL Error number: MY-011358; Symbol: ER_KEYRING_CHECK_KEY_FAILED_DUE_TO_INVALID_KEY; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011219; Symbol: ER_AUDIT_LOG_FILTER_FAILED_TO_STORE_TABLE_FLDS; SQLSTATE: HY0

文档解释Error number: MY-011219; Symbol: ER_AUDIT_LOG_FILTER_FAILED_TO_STORE_TABLE_FLDS; SQLSTATE: HY000Message: Could not
MySQL Error number: MY-011219; Symbol: ER_AUDIT_LOG_FILTER_FAILED_TO_STORE_TABLE_FLDS; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011435; Symbol: ER_KEYRING_AWS_FAILED_TO_FLUSH_KEYRING_TO_FILE; SQLSTATE: HY0

文档解释Error number: MY-011435; Symbol: ER_KEYRING_AWS_FAILED_TO_FLUSH_KEYRING_TO_FILE; SQLSTATE: HY000Message: Error
MySQL Error number: MY-011435; Symbol: ER_KEYRING_AWS_FAILED_TO_FLUSH_KEYRING_TO_FILE; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013749; Symbol: ER_GRP_RPL_VIEW_CHANGE_UUID_SAME_AS_GROUP_NAME; SQLSTATE: HY0

文档解释Error number: MY-013749; Symbol: ER_GRP_RPL_VIEW_CHANGE_UUID_SAME_AS_GROUP_NAME; SQLSTATE: HY000Message: Variable
MySQL Error number: MY-013749; Symbol: ER_GRP_RPL_VIEW_CHANGE_UUID_SAME_AS_GROUP_NAME; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011637; Symbol: ER_GRP_RPL_FAILED_TO_INIT_COMMUNICATION_ENGINE; SQLSTATE: HY0

文档解释Error number: MY-011637; Symbol: ER_GRP_RPL_FAILED_TO_INIT_COMMUNICATION_ENGINE; SQLSTATE: HY000Message: Error on
MySQL Error number: MY-011637; Symbol: ER_GRP_RPL_FAILED_TO_INIT_COMMUNICATION_ENGINE; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013877; Symbol: ER_IB_MSG_LOG_UPGRADE_FLUSH_FAILED__UNEXPECTED; SQLSTATE: HY0

文档解释Error number: MY-013877; Symbol: ER_IB_MSG_LOG_UPGRADE_FLUSH_FAILED__UNEXPECTED; SQLSTATE: HY000Message: Cannot
MySQL Error number: MY-013877; Symbol: ER_IB_MSG_LOG_UPGRADE_FLUSH_FAILED__UNEXPECTED; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-010564; Symbol: ER_RPL_SLAVE_IO_THREAD_CANT_REGISTER_ON_MASTER; SQLSTATE: HY0

文档解释Error number: MY-010564; Symbol: ER_RPL_SLAVE_IO_THREAD_CANT_REGISTER_ON_MASTER; SQLSTATE: HY000Message: Slave I/O
MySQL Error number: MY-010564; Symbol: ER_RPL_SLAVE_IO_THREAD_CANT_REGISTER_ON_MASTER; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013282; Symbol: ER_SERVER_RPL_ENCRYPTION_FAILED_TO_ROTATE_LOGS; SQLSTATE: HY0

文档解释Error number: MY-013282; Symbol: ER_SERVER_RPL_ENCRYPTION_FAILED_TO_ROTATE_LOGS; SQLSTATE: HY000Message: Failed to
MySQL Error number: MY-013282; Symbol: ER_SERVER_RPL_ENCRYPTION_FAILED_TO_ROTATE_LOGS; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013737; Symbol: ER_GRP_RPL_MEMBER_ACTION_DEFAULT_CONFIGURATION; SQLSTATE: HY0

文档解释Error number: MY-013737; Symbol: ER_GRP_RPL_MEMBER_ACTION_DEFAULT_CONFIGURATION; SQLSTATE: HY000Message: This
MySQL Error number: MY-013737; Symbol: ER_GRP_RPL_MEMBER_ACTION_DEFAULT_CONFIGURATION; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013294; Symbol: ER_WARNING_RETAIN_CURRENT_PASSWORD_CLAUSE_VOID; SQLSTATE: HY0

文档解释Error number: MY-013294; Symbol: ER_WARNING_RETAIN_CURRENT_PASSWORD_CLAUSE_VOID; SQLSTATE: HY000Message: RETAIN
MySQL Error number: MY-013294; Symbol: ER_WARNING_RETAIN_CURRENT_PASSWORD_CLAUSE_VOID; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013659; Symbol: ER_GRP_RPL_TIMEOUT_RECEIVED_VC_LEAVE_ON_REJOIN; SQLSTATE: HY0

文档解释Error number: MY-013659; Symbol: ER_GRP_RPL_TIMEOUT_RECEIVED_VC_LEAVE_ON_REJOIN; SQLSTATE: HY000Message: Timeout
MySQL Error number: MY-013659; Symbol: ER_GRP_RPL_TIMEOUT_RECEIVED_VC_LEAVE_ON_REJOIN; SQLSTATE: HY0
2023-11-05

编程热搜

目录