diff --git a/2208/存储过程练习题.md b/2208/存储过程练习题.md index 30d153c..14b127e 100644 --- a/2208/存储过程练习题.md +++ b/2208/存储过程练习题.md @@ -151,8 +151,7 @@ INSERT INTO employee (emp_name, salary, hire_date, dept_id, job_id) VALUES ```sql DELIMITER $$ DROP PROCEDURE IF EXISTS add_employee; -CREATE PROCEDURE add_employee(IN emp_name VARCHAR(100), IN salary DECIMAL(10,2), - IN hire_date DATE, IN dept_id INT, IN job_id INT) +CREATE PROCEDURE add_employee(IN emp_name VARCHAR(100), IN salary DECIMAL(10,2), IN hire_date DATE, IN dept_id INT, IN job_id INT) BEGIN INSERT INTO employee() VALUES(DEFAULT, emp_name, salary, hire_date, dept_id, job_id);