From 49853d733823c543ce09ee04ac2d378ebb8b2d4c Mon Sep 17 00:00:00 2001 From: smallkun Date: Thu, 20 Mar 2025 14:54:00 +0800 Subject: [PATCH] Auto commit --- 2208/存储过程练习题.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);