mysql - 为什么我在结果中得到 (BLOB) 值而不是 INT 值

标签 mysql sql centos navicat

当我执行大约三个 UNION ALL 查询时,它在列中正常显示 INT 值,但是当我对大约 15 个查询执行 UNION ALL 时,在一个列中它显示 (BLOB) 值,MySQL 服务在 CentOS 上运行,我检查了 mysql 服务的配置,我将所有内容都设置为更高的大小,我添加了 group_concat_max_len 但这对我没有帮助

现在,结果如下:

id    id_department   id_department_relase   some_column
1        (BLOB)            10                 some data

但它应该是这样的:

id    id_department   id_deparment_relase    some_column
1        5                 10                 some data

P.s 当我在 Excel 中复制列 where is (BLOB) 时,我得到正常的 int 值

最佳答案

问题已经解决,因为我将 UNION ALL 与多个 SELECT 查询一起使用,在一个查询中,我错过了列的顺序,并且我试图在 int 列中插入文本 varchar 值,这就是结果结果为 (BLOB )

关于mysql - 为什么我在结果中得到 (BLOB) 值而不是 INT 值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40742613/

相关文章:

postgresql - 使用 make 为 Postgresql 创建 pg_strom 扩展时出错 : “make: *** No targets specified and no makefile found. Stop.”

centos - NTP 守护进程运行缓慢

php - Memcached 不监听过期时间

php - MySQL 数据类型在 PHPMyAdmin 中没有改变......?

sql - 由 SQL 解析引起的 Oracle 响应延迟

sql - 使用 Visual C# Express 连接到 SQL Server

linux - 如何在 Google Compute Engine 上进行服务器更新?

mysql - 优化 "distinct where equals"查询和索引

sql - 将多行合并为一个空格分隔的字符串

sql - 如何在 SQL Server 中将自连接限制为 Top 1