我在命令提示符下创建存储过程可以
写法:
mysql> delimiter //
mysql> create procedure pro_first()
-> begin
-> select 'hi' as F ;
-> end
-> //
在phpmyadmin下创建报错
写法:
delimiter //
create procedure pro_second()
begin
select 'hi' as F ;
end
//错误:错误
您的 SQL 查询可能有错。如果可能的话,以下会列出 MySQL 服务器的错误输出,这可能对您解决问题有一定的帮助作用。ERROR: 未知的标点符号字符串 @ 60
STR: //
SQL: create procedure pro_second()
begin
select 'hi' as F ;
end
//
SQL 查询: create procedure pro_second() begin select 'hi' as F ; end // MySQL 返回: #1064 - 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 '//' at line 5
请问这是什么原因啊!
写法:
mysql> delimiter //
mysql> create procedure pro_first()
-> begin
-> select 'hi' as F ;
-> end
-> //
在phpmyadmin下创建报错
写法:
delimiter //
create procedure pro_second()
begin
select 'hi' as F ;
end
//错误:错误
您的 SQL 查询可能有错。如果可能的话,以下会列出 MySQL 服务器的错误输出,这可能对您解决问题有一定的帮助作用。ERROR: 未知的标点符号字符串 @ 60
STR: //
SQL: create procedure pro_second()
begin
select 'hi' as F ;
end
//
SQL 查询: create procedure pro_second() begin select 'hi' as F ; end // MySQL 返回: #1064 - 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 '//' at line 5
请问这是什么原因啊!
mysql_query($sql) or die(mysql_error());