0
点赞
收藏
分享

微信扫一扫

记录遇到的MySQL的错误

時小白 2022-04-17 阅读 38
sql

1、'Operand should contain 1 column(s)'

select avg(salary) as avg_salary
from salaries
where salary not in(select max(salary),min(salary)
                    from salaries
                    where to_date='9999-01-01')
and to_date='9999-01-01'

错误:子查询中有两列,in条件后面有多个字段

举报

相关推荐

0 条评论