mysql trigger operand debe contener 2 columnas
Mi disparador se ve así:
begin
IF ((NEW.tgebucht >= NEW.tteilnmax) AND (NEW.tgebucht!=0) AND (OLD.tstatus=0)) THEN
SET NEW.tstatus = 1;
ELSEIF ((NEW.tgebucht < NEW.tteilnmax) AND (OLD.tstatus=1)) THEN
SET NEW.tstatus =0;
END IF;
IF ((0,25*NEW.tteilnmax)>=(NEW.tteilnmax-NEW.tgebucht)) THEN
SET NEW.trestplatze =1;
END IF;
end
Y estoy recibiendo un error como este:
Operand should contain 2 column(s)
No estoy muy seguro de por qué, sé que está relacionado con el segundo, pero no puedo configurar dónde, ¿alguien tiene una idea de qué cambiar? ¿Estoy haciendo algo mal aquí? Cualquier ayuda sería apreciada.