How to use WHILE in MySQL?
I tried the following expression:
set @C = 5 while @C > 1 select dia from base_prov_chamada end while;
And I got the following answer:
You have an error in your SQL syntax; check the manual that correspondent to Your MySQL server version for the right syntax to use near 'while @c > 1 select day from base_prov_chamada end while 'at line 3
My version of MySQL is 5.0.