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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:34:23
Original
982 people have browsed it

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表当然存在,我是按照书本上的语法敲出来的.

Related labels:
Statement of this Website
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template