Error Code: 1054. Unknown column 'age' in 'user'

1、错误描述

10:28:20	alter table user modify age int(3) after sex	Error Code: 1054. Unknown column 'age' in 'user'	0.000 sec

2、错误原因

原本在user表中有age字段,但是在测试阶段删除了,后期将age位置修改,所以报错

3、解决办法

首先,先向user表中插入age字段;然后再修改它的位置

Error Code: 1054. Unknown column 'age' in 'user'

时间: 2024-11-05 16:26:34

Error Code: 1054. Unknown column 'age' in 'user'的相关文章

错误代码: 1054 Unknown column 'course' in 'field list'

1.错误描述 1 queries executed, 0 success, 1 errors, 0 warnings 查询:SELECT stu_name, course, score FROM t_student_info s LIMIT 0, 1000 错误代码: 1054 Unknown column 'course' in 'field list' 执行耗时 : 0 sec 传送时间 : 0 sec 总耗时 : 0 sec 2.错误原因 SELECT stu_name, course,

错误代码: 1054 Unknown column 't.createUsrId' in 'group statement'

1.错误描述 1 queries executed, 0 success, 1 errors, 0 warnings 查询:select count(t.id),t.`createUserId` from t_acs_ints t where t.id not in (SELECT t1.ionId FROM t_acs_cont t1, t_ac... 错误代码: 1054 Unknown column 't.createUsrId' in 'group statement' 执行耗时 : 0

discuzX3.2错误 (1054) Unknown column 'conuintoken' in 'field list'

开启QQ互联后,点击登录以后报错:(1054) Unknown column 'conuintoken' in 'field list'   下面把解决方法分享一下: 输入以下句子运行:(其中的 pre_ 为你论坛数据库的表前缀,如果不是默认的,请注意修改) ALTER TABLE  `pre_common_member_connect` ADD COLUMN conuintoken char(32) NOT NULL DEFAULT '';ALTER TABLE  `pre_common_co

pymysql.err.InternalError: (1054, "Unknown column 'None' in 'field list'")

错误提示: Traceback (most recent call last): File "D:/projectwc/test/dd.py", line 43, in <module> effect_row = cursor.execute("insert into `222` set c={}".format(None)) File "C:\python\lib\site-packages\pymysql\cursors.py",

django 修改字段后,同步数据库,失败:django.db.utils.InternalError: (1054, &quot;Unknown column &#39;api_config.project_id_id&#39; in &#39;field list&#39;&quot;)

问题原因是,修改字段后,同步失败了,然后执行查询的时候,就会提示这个错误,这个字段没有 最暴力的方法可以直接在数据库中修改字段,但是修改后,models没同步,可能会存在问题,因此开始我的百度之旅(这个问题网上资料还真的挺少的) 方法一,不要犹豫,重启大法,关闭项目,关闭开发工具,从新打开,这个方法好像不行 方法二,删除大法,因为django有models在,数据库建表还是很容易的,只不过是数据丢失了,对我我这种不正经的开发来说,无关紧要咯 所以,我删除了库,删除了django生成的migrat

报错:pymysql.err.InternalError: (1054, &quot;Unknown column &#39;AType&#39; in &#39;field list&#39;&quot;)

报错背景: 报错前sql代码展示: List = ['Manual', 'Float', 'TimeValue', 'None', '100', '100', '0', '0', '0', '0', 'Forced', '排水系统3#中央泵负压', '556', 'SLWS_ps_3hzybf_YL.PV', 'Analog', '2019/6/13 8:32:46', '-0.0034143477678299', '0'] # sql = "insert into test(id, name)

mysql命令 出现ERROR 1054 (42S22): Unknown column &#39;password&#39; in &#39;field list&#39;

1.安装 brew install msyql 2.更新 brew upgrade mysql 3.启动 To have launchd start mysql now and restart at login: brew services start mysqlOr, if you don't want/need a background service you can just run: mysql.server start 4.登录 mysql -uroot 5.查看用户及密码 selec

ERROR 1054 (42S22): Unknown column &#39;password&#39; in &#39;field list&#39;

解决: update MySQL.user set authentication_string=password('123456') where user='root'; FLUSH PRIVILEGES; 技术交流群: 816227112 ERROR 1054 (42S22): Unknown column 'password' in 'field list' 原文地址:https://www.cnblogs.com/helloworld6379/p/11027505.html

MySQL 1054错误 Unknown column .... in &#39;on clause&#39;

ERROR 1054 (42S22): Unknown column ... in 'on clause' 原因: MySQL5.0 Bug, 要把联合的表用括号包含起来才行: 例: Sql代码   SELECT (c.id, a.id, b.id) FROM A a, B b LEFT JOIN C c ON c.a_id = a.a_id AND c.b_id = b.b_id 这句话执行应该是没有错误的,但是Mysql 5 下执行则会出错. 因为mysql下有这样一个BUG,要把联合的表用