DelimitercreateprocedurefindEmp () beginselect * fromemp; end queries the table emp in the current database. Why can't I create a simple statement successfully? Where is the error? Error message: ERROR1064 (42000): YouhaveanerrorinyourSQLsyntax; checkthemanualthatcorrespondstoyourMySQLserverversionforthe... mysql
Delimiter //
Create procedure findEmp ()
Begin
Select * from emp;
End //
Query the table emp in the current database. Why can't I create such a simple statement successfully? Where is the error?
The following are Error messages:
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;
The MySql version is 4.1, and the emp table certainly exists. I typed it according to the syntax in the book.