MySQL/phpMyAdmin freezes from DELIMITER

前端 未结 2 1887
执笔经年
执笔经年 2021-01-19 08:42

Running this procedure causes MySQL (or phpMyAdmin) to freeze. I have to stop MySQL with from XAMPP command, which freezes and \"is not responding\" about 20 seconds before

相关标签:
2条回答
  • 2021-01-19 08:58

    the update command should:

    update teams set live = live-1 where id = new.victim;
    update teams where id = new.shooter set score = score+points;
    

    the where after the set clause

    0 讨论(0)
  • 2021-01-19 09:00

    As it turns out, phpMyAdmin has a field marked "delimiter:" below the SQL query box. Using it rather than the command solves the problem. Further research explains that "DELIMITER" is not a SQL command, but a command generally implemented by all SQL ui's.

    0 讨论(0)
提交回复
热议问题