我有像
这样的代码UPDATE `crm_listings` SET `baths` = CASE
WHEN `id` = '6' THEN '4'
WHEN `id` = '5' THEN '4'
ELSE `baths` END, `updated_by` = CASE
WHEN `id` = '6' THEN '1'
WHEN `id` = '5' THEN '1'
ELSE `updated_by` END
WHERE `id` IN('6','5')
它给我错误Column count doesn't match value count at row 1
注意:同一张桌子上也有触发器。
CREATE TRIGGER crm_listings__au AFTER UPDATE ON crm_listings FOR EACH ROW
INSERT INTO crm_listings_versions SELECT 'update', NULL, NOW(), d.*
FROM crm_listings AS d WHERE d.id = NEW.id;
我猜问题是触发器!可能是什么问题?