Home >Database >Mysql Tutorial >mysql-MySql命令行下创建存储过程的语法错误

mysql-MySql命令行下创建存储过程的语法错误

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 09:34:23966browse

mysql

delimiter //
create procedure findEmp()
begin
select *from emp;
end //

在当前数据库下查询表emp,这么简单的语句为啥我死活创建不成功?哪里出错啊?
以下是错误提示:
ERROR 1064 (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 'proce
dure findEmp()
begin
select *from emp;

MySql版本是4.1,emp表当然存在,我是按照书本上的语法敲出来的.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn