rdbms lab exercise
rdbms lab exercise
9 STORED PROCEDURE
Statement of problem
Create a stored procedure to get employee details from employee table
Aim
To Create a stored procedure to get employee details from employee table
PROCEDURE:
Create Database
CREATE DATABASE emp;
show the database
SHOW DATABASES;
Using the database
USE emp;
CALL GetEmployeeDetails(NULL);
CALL GetEmployeeDetails(1);
Result
The mysql query to create a stored procedure to get employee details from employee
table has been done successfully
Displaying employee Table Structure: