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
|
```sql
|
||||||
DELIMITER $$
|
DELIMITER $$
|
||||||
DROP PROCEDURE IF EXISTS add_employee;
|
DROP PROCEDURE IF EXISTS add_employee;
|
||||||
CREATE PROCEDURE add_employee(IN emp_name VARCHAR(100), IN salary DECIMAL(10,2),
|
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)
|
||||||
IN hire_date DATE, IN dept_id INT, IN job_id INT)
|
|
||||||
BEGIN
|
BEGIN
|
||||||
INSERT INTO employee()
|
INSERT INTO employee()
|
||||||
VALUES(DEFAULT, emp_name, salary, hire_date, dept_id, job_id);
|
VALUES(DEFAULT, emp_name, salary, hire_date, dept_id, job_id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user