PolarDB正常的一个UNION ALL查询,不包含子查询,为什么会有
Operand should contain 1 column(s)
这种报错提示?SELECT
ITime
FROM
tb_bb b
INNER JOIN tb_cc c ON
c.bbId = b.Id
INNER JOIN tb_dd d ON
d.bbId = b.Id
WHERE d.stutas != 3
AND b.code IS NULL
AND c.status IN (0, 4)
AND b.status IN (3, 4, 5, 6, 8, 12)
AND (otype = '02'
AND ( ProCode IN ('230000', '220000')
OR CityCode IN ('152200', '150400', '150500', '150700') ))
UNION ALL
SELECT
ITime
FROM
tb_bb b
INNER JOIN tb_cc c ON
c.bbId = b.Id
INNER JOIN tb_dd d ON
d.bbId = b.Id
WHERE d.stutas != 3
AND b.code IS NULL
AND c.status IN (0, 4)
AND b.status IN (3, 4, 5, 6, 8, 12)
AND (otype NOT IN ('01','02','03','04')
AND ( ProCode IN ('230000', '220000')
OR CityCode IN ('152200', '150400', '150500', '150700') ))
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
阿里云关系型数据库主要有以下几种:RDS MySQL版、RDS PostgreSQL 版、RDS SQL Server 版、PolarDB MySQL版、PolarDB PostgreSQL 版、PolarDB分布式版 。