MYSQL 出现 1241 - Operand should contain 1 column(s)
操作数应该包含一列
错误原因:使用操作符出现问题
-
例如
=
后面应该只能跟一列status_code = (1,2,3)
而不是status_code in (1,2,3)
-
或者
in
出现问题in ( select a,b from table_c )
in后面应该只跟一列字段
MYSQL 出现 1241 - Operand should contain 1 column(s)
操作数应该包含一列
错误原因:使用操作符出现问题
例如=
后面应该只能跟一列
status_code = (1,2,3)
而不是status_code in (1,2,3)
或者in
出现问题
in (
select a,b from table_c
)
in后面应该只跟一列字段