错误1054(42S22):“字段列表"中的未知列"‍‍" [英] ERROR 1054 (42S22): Unknown column '‍‍' in 'field list'

查看:170
本文介绍了错误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):“字段列表"中的未知列"‍‍"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆