利用phpMyAdmin管理MySQL,执行SQL语句出现错误,请高手指点,感恩!
SQL代码:SET @cp = 1;
WHILE ( @cp > 0 ) DO
SET @cp = 0;
END WHILE;
错误提示:
#1064 - You have an error in your SQL syntax; check the manual thatcorresponds to your MySQL server version for the right syntax to usenear 'WHILE ( @cp > 0 ) DO
SET @cp = 0' at line 1
这么简单的SQL语句,到底是哪里出了问题呢?我是初学者,真是不明白,请高手指点。感恩! 像这样的结构SQL,是要写在Procedure或Function里的...
知道了!謝謝!
知道了!謝謝!
页:
[1]