mysql trigger operand should contain 2 columns

后端 未结 1 1994
孤城傲影
孤城傲影 2020-12-12 05:21

My trigger looks like this:

begin
IF ((NEW.tgebucht >= NEW.tteilnmax) AND (NEW.tgebucht!=0) AND (OLD.tstatus=0)) THEN
  SET NEW.tstatus = 1;
ELSEIF ((NEW.         


        
相关标签:
1条回答
  • 2020-12-12 05:45

    The syntax looks well. But there is a hidden bug in next line -

    IF ((0,25*NEW.tteilnmax)>=(NEW.tteilnmax-NEW.tgebucht)) THEN
    

    You should use '.' as a point delimiter -

    IF ((0.25*NEW.tteilnmax)>=(NEW.tteilnmax-NEW.tgebucht)) THEN
    
    0 讨论(0)
提交回复
热议问题