1072 - Key column 'user id' doesn't exist in table mysql建立主外键时说该键不存在报错

抓了个哇 2020-05-06 06:40:19

2020年5月6日
天气晴
早上下了点小雨
微微东南风
下午我尝试数据库建立主外键
一直报错提示我字段 userid not exist


然而我看表里的 userid 字段陷入了沉思
这破数据库真就要跟我作对?
经过我一通百度一顿操作
半小时后我狠狠抽了自己一巴掌


这TM是第二次了!

话说::


使用cmd添加字段带空格报错

使用编辑器然而莫得问题,难道是编辑器将空格字段经过处理了?


...全文
4198 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
小样弱爆了 2022-10-12
  • 打赏
  • 举报
回复 1

真的是,真想抽自己一巴掌,服了关键肉眼看不出来,光标往前才发现

xiaobaixiaoC 2022-04-15
  • 打赏
  • 举报
回复 1

竟然是这样,谢博主分享

BagMM 2021-12-07
  • 打赏
  • 举报
回复

我也是这样,气死我了

Yole 2020-05-07
  • 打赏
  • 举报
回复

--查一下看看还有没有字段带空格。。。。
select  *  from  sys.columns
where charindex(' ',name)>=1
Delphi 7.1 Update Release Notes=======================================================This file contains important supplemental and late-breakinginformation that may not appear in the main productdocumentation, and supersedes information contained in otherdocuments, including previously installed release notes.Borland recommends that you read this file in its entirety.NOTE: If you are updating a localized version of Delphi 7, visit the Borland Registered User web site to obtain a localized readme file that may contain important late- breaking information not included in this readme file.IMPORTANT: Delphi must be closed before installing this update. =====================================================CONTENTS * INSTALLING THIS UPDATE * UPDATING LOCALIZED VERSIONS OF DELPHI 7 * KNOWN ISSUES * ISSUES ADDRESSED BY THIS UPDATE - IDE - CORE DATABASE - DATASNAP - DBGO (ADO COMPONENTS) - dbExpress - dbExpress COMPONENTS AND DB VCL - dbExpress CORE DRIVER AND METADATA - dbExpress VENDOR ISSUES - dbExpress CERTIFICATION - WEB SNAP - ACTIVEX - COMPILER - RTL - VCL - THIRD PARTY - BOLD FOR DELPHI * VERIFYING THAT THE UPDATE WAS SUCCESSFUL * FILES INSTALLED BY THIS UPDATE =======================================================INSTALLING THIS UPDATE* This update can not be applied to Delphi 7 Architect Trial version. * This update can not be removed after it is installed.* You will need the original Delphi 7 installation CD available to install this update.* To install this update from the CD, insert the CD, and launch the d7_ent_upd1.exe file appropriate for your locale.* To install this update from the Web, double-click the self-executing installation file and follow the prompts. * The Delphi 7 documentation PDF files are available on the update CD.========================================================UPDATING LOCALIZED VERSIONS OF DELPHI 7* This update can be applied only to the English version of Delphi 7. There are separate updates for the German, French and Japanese ver

22,299

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧