作者:小白秋波_314 | 来源:互联网 | 2018-04-25 12:33
delimitercreateprocedurefindEmp()beginselect*fromemp;end在当前数据库下查询表emp,这么简单的语句为啥我死活创建不成功?哪里出错啊?以下是错误提示:ERROR1064(42000):YouhaveanerrorinyourSQLsyntax;checkthemanualthatcorrespondstoyourMySQLserverversionforthe...
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表当然存在,我是按照书本上的语法敲出来的.