我想基于一个子查询的结果插入,但我不断收到同样的错误:插入查询
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
)
))
哪有我为我的插入选择多个列?
完美,这工作很好,我会尽快接受它 – BenOfTheNorth 2013-03-06 10:32:06