1 Answer

0 votes
by

A stored procedure is a subroutine available to applications that access a relational database management system (RDBMS). Such procedures are stored in the database data dictionary. The sole disadvantage of stored procedure is that it can be executed nowhere except in the database and occupies more memory in the database server. It also provides a sense of security and functionality as users who can't access the data directly can be granted access via stored procedures.

DELIMITER $$
CREATE PROCEDURE FetchAllStudents()
BEGIN
SELECT *  FROM myDB.students;
END $$
DELIMITER ;

    Related questions

    0 votes
        What are the advantages of stored procedure?...
    asked Dec 17, 2020 in Technology by JackTerrance
    0 votes
        What is a Recursive Stored Procedure?...
    asked Dec 11, 2020 in Technology by JackTerrance
    0 votes
        What is the command used to Recompile the stored procedure at run time?...
    asked Nov 9, 2020 in Technology by Editorial Staff
    0 votes
        Which SQL server table is used to hold the stored procedure scripts?...
    asked Nov 9, 2020 in Technology by Editorial Staff
    0 votes
        What are the differences between Stored Procedure and the dynamic SQL?...
    asked Nov 9, 2020 in Technology by Editorial Staff
    0 votes
    0 votes
        I'm attempting to call my sql stored procedure which takes RaceDate as an input and returns Location as an ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
    asked May 7, 2022 in Education by JackTerrance
    0 votes
        I'm attempting to call my sql stored procedure which takes RaceDate as an input and returns Location as an ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
    asked May 4, 2022 in Education by JackTerrance
    0 votes
        I have a stored procedure in SQL 2005. The Stored Procedure is actually creating temporary tables in the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
    asked Mar 19, 2022 in Education by JackTerrance
    0 votes
        I have a stored procedure in SQL 2005. The Stored Procedure is actually creating temporary tables in the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
    asked Mar 18, 2022 in Education by JackTerrance
    0 votes
        I have a stored procedure in SQL 2005. The Stored Procedure is actually creating temporary tables in the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
    asked Mar 18, 2022 in Education by JackTerrance
    0 votes
        Which of the following is used to call stored procedure? (a) Statement (b) PreparedStatement (c) CallableStatment (d ... & JDBC of Java Select the correct answer from above options...
    asked Feb 22, 2022 in Education by JackTerrance
    0 votes
        Simple select stored procedure but getting only one column as the result others were getting as null. Can ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
    asked Feb 7, 2022 in Education by JackTerrance
    0 votes
        Simple select stored procedure but getting only one column as the result others were getting as null. Can ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
    asked Feb 5, 2022 in Education by JackTerrance
    0 votes
        How do I do a SELECT * INTO [temp table] FROM [stored procedure]? Not FROM [Table] and without defining [ ... not supply any columns. Select the correct answer from above options...
    asked Jan 28, 2022 in Education by JackTerrance
    ...