Yahoo India Web Search

Search results

  1. What is a Stored Procedure? A stored procedure is a prepared SQL code that you can save, so the code can be reused over and over again. So if you have an SQL query that you write over and over again, save it as a stored procedure, and then just call it to execute it.

  2. Jun 15, 2024 · A Procedure in PL/SQL is a subprogram containing a series of declarative SQL statements that can take parameters and be called to perform a specific action. These PL/SQL procedures are stored in the database catalog. A procedure can be thought of as a function or a method.

  3. A procedure (often called a stored procedure) is a collection of pre-compiled SQL statements stored inside the database. It is a subroutine or a subprogram in the regular computing language. A procedure always contains a name, parameter lists, and SQL statements.

  4. May 8, 2024 · A stored procedure in SQL is a group of SQL queries that can be saved and reused multiple times. It is very useful as it reduces the need for rewriting SQL queries. It enhances efficiency, reusability, and security in database management.

  5. In SQL, a stored procedure is a set of statement (s) that perform some defined actions. We make stored procedures so that we can reuse statements that are used frequently. Stored procedures are thus similar to functions in programming. They can perform specified operations when we call them.

  6. It is typically used to encapsulate a set of operations or business logic that can be reused across different parts of an application or by multiple users. Stored procedures offer several advantages, including improved performance, code modularization, and enhanced security.

  7. Syntax. CREATE PROCEDURE procedure_name. [parameter1 datatype1, parameter2 datatype2, ...] AS. -- SQL statements to define the procedure's logic. BEGIN. -- SQL statements inside the procedure. END; Let’s break down the components: CREATE PROCEDURE: This is the beginning of the statement, indicating that you are creating a new stored procedure.

  8. Apr 28, 2023 · A stored procedure is a set of SQL statements that can be executed on the database. It is stored as an object in the database. A stored procedure allows for code that is run many times to be saved on the database and run at a later time, making it easier for yourself and other developers in the future.

  9. Jan 5, 2024 · The procedure controls what processes and activities are performed and protects the underlying database objects. This eliminates the requirement to grant permissions at the individual object level and simplifies the security layers.

  10. A PL/SQL procedure is a reusable unit that encapsulates the specific business logic of the application. Technically speaking, a PL/SQL procedure is a named block stored as a schema object in the Oracle Database. The following illustrates the basic syntax of creating a procedure in PL/SQL:

  1. Searches related to procedure in dbms

    procedure in sql