Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Stored Procedure: Add Employee

Create a stored procedure add_employee(name, salary) that inserts a new employee with the next available id and the given name and salary.

Table schema

Employees(id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(50), salary INT)

Sample data

Call: CALL add_employee('Asha', 50000);

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.