我正在尝试根据子查询的结果进行插入,但我不断收到相同的错误:
Operand should contain 1 column(s)
这是查询:
INSERT INTO customer_entity_int
(attribute_id, entity_type_id, entity_id, `value`)
VALUES (14, (
SELECT entity_type_id, entity_id, `value`
FROM customer_entity_int
WHERE attribute_id = 13
AND entity_id NOT
IN (
SELECT entity_id
FROM customer_entity_int
WHERE attribute_id = 14
)
))
如何为我的插入选择多于一列?