Auto commit

This commit is contained in:
smallkun 2025-03-20 14:54:00 +08:00
parent 2be46d87e0
commit 49853d7338

View File

@ -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);