delimiter $$
CREATE PROCEDURE TestWhile()
     BEGIN
    SELECT * from oa_case;
end $$
delimiter ;报如下错误your MySQL server version for the right syntax to use near 'delimiter $$
CREATE PROCEDURE TestWhile()
     BEGIN
    SELECT * from oa_case' at line 1
 11:28:03  [END - 0 row(s), 0.000 secs]  [Error Code: 1064, SQL State: 42000]  You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'end $$
delimiter' at line 1

解决方案 »

  1.   

    在MYSQL命令行下输入上述代码,没有问题,你在图形化管理工具中运行?
      

  2.   

    是啊,用的phpamyadmin和dataStadio中都不行。
      

  3.   

    phpamyadmin 中你需要设置一下 delimter 这个在界面上设置,不是用 delimiter $$命令。
    你可以在MYSQL自带的命令行工具测试你的代码。
      

  4.   

    请大神详细解释下phpamyadmin和dataStadio怎么设置
      

  5.   

    phpamyadmin 在下面应该有个TEXTBOX设置 delimiter 的。
      

  6.   

    You have an error in your SQL syntax; check the manual that corresponds to y