ERROR 1054 (42S22): Unknown column #39;#39; in #39;field list#39;(错误 1054 (42S22):“字段列表中的未知列“)
问题描述
当我尝试使用 mysql CLI 在 MaridaDB 10 中将数据从 db1 插入到 db2 时,我遇到了这个烦人的错误.这是所有列都存在的时候.
I get this annoying error when I try to insert data from db1 to db2 in MaridaDB 10 using mysql CLI. This is while all the columns exist.
INSERT INTO db2.thread (threadid, title, postuserid, dateline, views)
SELECT `nid`, `title`, `uid`, `created`,
`comment` from db1.node where type = 'forum' and status = 1;
当我在 PHPMyAdmin 中执行相同的查询时,我得到:
When I execute the same query in PHPMyAdmin, I get:
#1054 - Unknown column 'â€
我尝试了不同的语法,如like"等,但无济于事.感谢您的提示
I tried different syntax like 'like' etc. with no avail. Appreciate your hints
推荐答案
您的查询中似乎有不可见的垃圾字符.
Looks like there are invisible garbage characters in your query.
尝试重新输入查询(不要复制和粘贴,否则您很可能会包含垃圾字符),它应该可以工作.
Try retyping the query (don't copy and paste or you'll most likely include the garbage character) and it should work.
这篇关于错误 1054 (42S22):“字段列表"中的未知列“"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:错误 1054 (42S22):“字段列表"中的未知列“"


基础教程推荐
- CHECKSUM 和 CHECKSUM_AGG:算法是什么? 2021-01-01
- 使用 VBS 和注册表来确定安装了哪个版本和 32 位 2021-01-01
- while 在触发器内循环以遍历 sql 中表的所有列 2022-01-01
- MySQL 5.7参照时间戳生成日期列 2022-01-01
- ORA-01830:日期格式图片在转换整个输入字符串之前结束/选择日期查询的总和 2021-01-01
- 带更新的 sqlite CTE 2022-01-01
- MySQL根据从其他列分组的值,对两列之间的值进行求和 2022-01-01
- 带有WHERE子句的LAG()函数 2022-01-01
- 从字符串 TSQL 中获取数字 2021-01-01
- 如何在 CakePHP 3 中实现 INSERT ON DUPLICATE KEY UPDATE aka upsert? 2021-01-01