MYSQL 出现 1241 - Operand should contain 1 column(s)

操作数应该包含一列

错误原因:使用操作符出现问题

  1. 例如=后面应该只能跟一列

    status_code = (1,2,3) 而不是status_code in (1,2,3)

  2. 或者in出现问题

    in (
    select a,b from table_c
    )
    

    in后面应该只跟一列字段

Logo

一站式 AI 云服务平台

更多推荐