创建存储过程以查看MYSQL

时间:2015-05-06 14:44:32

标签: mysql database stored-procedures syntax-error

我对这个存储过程的语法有很多麻烦,它应该从名为Country的表中返回所有信息,并试图使用参数进行比较:

Create Procedure CountrybyPK (country char(50))
begin
Select * From Country
Where Country.Name=country
end;

我得到的错误说明:

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' at line 5

0 个答案:

没有答案