The pit encountered by the mysql stored procedure (the solution that select count(*) always returns 0 in the while loop)

Normally such a statement is correct 


But if in the while loop or other places, the result that is always returned is 0, the solution is: dynamic splicing sql,


   






Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326804382&siteId=291194637