Auto commit
This commit is contained in:
parent
2be46d87e0
commit
49853d7338
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user