PHP mysqli query error but query is correct

前端 未结 2 777
孤独总比滥情好
孤独总比滥情好 2021-01-25 14:58

I have a MySQL Query which executes correctly in SequelPro but doesnt execute in PHP Mysqli. The message which is shown:

Execution stopped. Message: An

2条回答
  •  孤街浪徒
    2021-01-25 15:34

    Figured the answer out myself. The problem was as I said in SET @csum := 0; I dont know why but it works when I do a CROSS JOIN (SELECT @csum:=1) c after the last FROM in the statement.

提交回复
热议问题