2
How to use WHILE in Mysql?
I tried with the following expression:
set @C = 5 while @C > 1 select dia from base_prov_chamada end while;
And I got the following reply::
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 dia from base_prov_chamada end while' at line 3
My Mysql version is 5.0.
You may not have conditions outside the procedure stored in mysql: http://dev.mysql.com/doc/refman/5.0/en/while.html
– LeoFelipe
Welcome to Stack Overflow! If you can explain better the problem you have in particular and, if possible, show code you have done where this problem is. Your question is too broad, see Help Center How to Ask.
– Jorge B.